From 4cdfa5802dd2df2effc1cd41c261e09b8ffe25b2 Mon Sep 17 00:00:00 2001 From: jack Date: Sun, 10 Dec 2023 12:27:51 +0700 Subject: [PATCH] update stremiox --- Movierulzhd/src/main/kotlin/com/hexated/Animesaga.kt | 6 ++++++ SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt | 2 +- StremioX/build.gradle.kts | 2 +- StremioX/src/main/kotlin/com/hexated/StremioX.kt | 5 ++++- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Movierulzhd/src/main/kotlin/com/hexated/Animesaga.kt b/Movierulzhd/src/main/kotlin/com/hexated/Animesaga.kt index e4bd115b0..524ac1768 100644 --- a/Movierulzhd/src/main/kotlin/com/hexated/Animesaga.kt +++ b/Movierulzhd/src/main/kotlin/com/hexated/Animesaga.kt @@ -1,11 +1,17 @@ package com.hexated +import com.lagradost.cloudstream3.TvType import com.lagradost.cloudstream3.mainPageOf class Animesaga : Movierulzhd() { override var mainUrl = "https://www.animesaga.in" override var name = "Animesaga" + override val supportedTypes = setOf( + TvType.Anime, + TvType.AnimeMovie, + TvType.OVA + ) override val mainPage = mainPageOf( "movies" to "Movies", diff --git a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt index d30e08193..c66515231 100644 --- a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt +++ b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt @@ -2211,7 +2211,7 @@ object SoraExtractor : SoraStream() { } val headers = mapOf( - "Cookie" to "PHPSESSID=e555h63ilisoj2l6j7b5d4jb6p; _csrf=9597150e45f485ad9c4f2e06a2572534d8415337eda9d48d0ecfa25b73b6a9e1a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%222HcnegjGB0nX205FAUPb86fqMx9HWIF1%22%3B%7D; _ga=GA1.1.1195498587.1701871187; _ga_VZD7HJ3WK6=GS1.1.$unixTimeMS.2.0.$unixTimeMS.0.0.0", + "Cookie" to "PHPSESSID=e555h63ilisoj2l6j7b5d4jb6p; _csrf=9597150e45f485ad9c4f2e06a2572534d8415337eda9d48d0ecfa25b73b6a9e1a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%222HcnegjGB0nX205FAUPb86fqMx9HWIF1%22%3B%7D; _ga=GA1.1.1195498587.1701871187; _ga_VZD7HJ3WK6=GS1.1.$unixTimeMS.4.0.1.$unixTimeMS.0.0.0", "Connection" to "keep-alive", "x-requested-with" to "com.wwcinematv", ) diff --git a/StremioX/build.gradle.kts b/StremioX/build.gradle.kts index fb6333b29..c08ea2b1f 100644 --- a/StremioX/build.gradle.kts +++ b/StremioX/build.gradle.kts @@ -1,5 +1,5 @@ // use an integer for version numbers -version = 11 +version = 12 cloudstream { diff --git a/StremioX/src/main/kotlin/com/hexated/StremioX.kt b/StremioX/src/main/kotlin/com/hexated/StremioX.kt index 7f2419fe9..314e124f0 100644 --- a/StremioX/src/main/kotlin/com/hexated/StremioX.kt +++ b/StremioX/src/main/kotlin/com/hexated/StremioX.kt @@ -13,8 +13,9 @@ import com.lagradost.cloudstream3.utils.AppUtils.toJson import java.net.URI import java.util.ArrayList import kotlin.math.roundToInt +import com.lagradost.cloudstream3.metaproviders.TmdbProvider -open class StremioX : MainAPI() { +open class StremioX : TmdbProvider() { override var mainUrl = "https://torrentio.strem.fun" override var name = "StremioX" override val hasMainPage = true @@ -181,6 +182,7 @@ open class StremioX : MainAPI() { this.showStatus = getStatus(res.status) this.recommendations = recommendations this.actors = actors + this.contentRating = fetchContentRating(data.id, "US") addTrailer(trailer) addTMDbId(data.id.toString()) addImdbId(res.external_ids?.imdb_id) @@ -202,6 +204,7 @@ open class StremioX : MainAPI() { this.rating = rating this.recommendations = recommendations this.actors = actors + this.contentRating = fetchContentRating(data.id, "US") addTrailer(trailer) addTMDbId(data.id.toString()) addImdbId(res.external_ids?.imdb_id)