From e58dbbb4f04476d9326c919e2c5f06bb409954c1 Mon Sep 17 00:00:00 2001 From: hexated Date: Tue, 4 Apr 2023 12:17:12 +0700 Subject: [PATCH] stremiox: fix detail page --- .../src/main/kotlin/com/hexated/StremioC.kt | 36 ++++++++++++++----- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/StremioX/src/main/kotlin/com/hexated/StremioC.kt b/StremioX/src/main/kotlin/com/hexated/StremioC.kt index 017c3eab..bc9fc976 100644 --- a/StremioX/src/main/kotlin/com/hexated/StremioC.kt +++ b/StremioX/src/main/kotlin/com/hexated/StremioC.kt @@ -3,6 +3,8 @@ package com.hexated import android.util.Log import com.fasterxml.jackson.annotation.JsonProperty import com.lagradost.cloudstream3.* +import com.lagradost.cloudstream3.LoadResponse.Companion.addActors +import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer import com.lagradost.cloudstream3.utils.* import com.lagradost.cloudstream3.utils.AppUtils.parseJson import com.lagradost.cloudstream3.utils.AppUtils.toJson @@ -178,15 +180,25 @@ class StremioC : MainAPI() { } private data class CatalogResponse(val metas: List?, val meta: CatalogEntry?) + + private data class Trailer( + val source: String?, + val type: String? + ) private data class CatalogEntry( - val name: String, - val id: String, - val poster: String?, - val background: String?, - val description: String?, - val imdbRating: String?, - val type: String?, - val videos: List