diff --git a/SoraStream/build.gradle.kts b/SoraStream/build.gradle.kts index c0594075..6bb83f94 100644 --- a/SoraStream/build.gradle.kts +++ b/SoraStream/build.gradle.kts @@ -1,5 +1,5 @@ // use an integer for version numbers -version = 10 +version = 11 cloudstream { diff --git a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt index 9af5a109..30eed340 100644 --- a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt +++ b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt @@ -1,6 +1,5 @@ package com.hexated -import com.fasterxml.jackson.annotation.JsonProperty import com.lagradost.cloudstream3.* import com.lagradost.cloudstream3.network.WebViewResolver import com.lagradost.cloudstream3.utils.* @@ -294,7 +293,7 @@ object SoraExtractor : SoraStream() { val query = if (season == null) { "$mainServerAPI/movies/$id/watch?provider=Loklok&id=$providerId&_data=routes/movies/\$movieId.watch" } else { - "$mainServerAPI/tv-shows/$id/season/$season/episode/$episode?provider=Loklok&id=$providerId&_data=routes/tv-shows/\$tvId.season.\$seasonId.episode.\$episodeId" + "$mainServerAPI/tv-shows/$id/season/$season/episode/${episode?.minus(1)}?provider=Loklok&id=$providerId&_data=routes/tv-shows/\$tvId.season.\$seasonId.episode.\$episodeId" } val json = app.get( @@ -425,12 +424,3 @@ suspend fun loadLinksWithWebView( ) } -private data class MovieHabData( - @JsonProperty("link") val link: String? = null, - @JsonProperty("token") val token: String? = null, -) - -private data class MovieHabRes( - @JsonProperty("data") val data: MovieHabData? = null, -) - diff --git a/SoraStream/src/main/kotlin/com/hexated/SoraStream.kt b/SoraStream/src/main/kotlin/com/hexated/SoraStream.kt index 93bf72df..7f29ddfb 100644 --- a/SoraStream/src/main/kotlin/com/hexated/SoraStream.kt +++ b/SoraStream/src/main/kotlin/com/hexated/SoraStream.kt @@ -542,4 +542,13 @@ open class SoraStream : TmdbProvider() { @JsonProperty("provider") val provider: ArrayList? = arrayListOf(), ) + data class MovieHabData( + @JsonProperty("link") val link: String? = null, + @JsonProperty("token") val token: String? = null, + ) + + data class MovieHabRes( + @JsonProperty("data") val data: MovieHabData? = null, + ) + }