diff --git a/WebFlix/build.gradle.kts b/WebFlix/build.gradle.kts index d0e4c3b..80a21f7 100644 --- a/WebFlix/build.gradle.kts +++ b/WebFlix/build.gradle.kts @@ -1,5 +1,5 @@ // use an integer for version numbers -version = 2 +version = 3 cloudstream { // All of these properties are optional, you can safely remove them diff --git a/WebFlix/src/main/kotlin/com/lagradost/WebFlixProvider.kt b/WebFlix/src/main/kotlin/com/lagradost/WebFlixProvider.kt index 0eb0366..79530bd 100644 --- a/WebFlix/src/main/kotlin/com/lagradost/WebFlixProvider.kt +++ b/WebFlix/src/main/kotlin/com/lagradost/WebFlixProvider.kt @@ -55,7 +55,11 @@ class WebFlixProvider(override var lang: String, override var mainUrl: String, o val posters: List ) - private data class HomeResponse(val genres: List, val channels: List, val slides: List) { + private data class HomeResponse( + val genres: List = emptyList(), + val channels: List = emptyList(), + // val slides: List = emptyList() + ) { fun getHomePageLists(provider: WebFlixProvider): List { val lists = mutableListOf() if (channels.isNotEmpty()) { @@ -64,7 +68,7 @@ class WebFlixProvider(override var lang: String, override var mainUrl: String, o } lists.add(channels.toHomePageList("Channels", provider)) } - if (slides.isNotEmpty()) lists.add(slides.toHomePageList("Slides", provider)) + //if (slides.isNotEmpty()) lists.add(slides.toHomePageList("Slides", provider)) lists.addAll(genres.map { it.toHomePageList(provider) }) return lists } @@ -157,7 +161,7 @@ class WebFlixProvider(override var lang: String, override var mainUrl: String, o } TvType.TvSeries -> provider.newTvSeriesSearchResponse( title, - "${provider.mainUrl}/api/series/by/$id/${provider.magicPath}", + "${provider.mainUrl}/api/movie/by/$id/${provider.magicPath}", TvType.TvSeries ) { posterUrl = image