From 379525d83b87e2229f0f08c66175b4f2f37b92e4 Mon Sep 17 00:00:00 2001 From: jack Date: Tue, 21 Nov 2023 22:25:22 +0700 Subject: [PATCH] fixed #391 --- Moviehab/build.gradle.kts | 2 +- Moviehab/src/main/kotlin/com/hexated/Moviehab.kt | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Moviehab/build.gradle.kts b/Moviehab/build.gradle.kts index 9676a397..ee715c13 100644 --- a/Moviehab/build.gradle.kts +++ b/Moviehab/build.gradle.kts @@ -1,5 +1,5 @@ // use an integer for version numbers -version = 1 +version = 2 cloudstream { diff --git a/Moviehab/src/main/kotlin/com/hexated/Moviehab.kt b/Moviehab/src/main/kotlin/com/hexated/Moviehab.kt index b5fc674f..6a34788f 100644 --- a/Moviehab/src/main/kotlin/com/hexated/Moviehab.kt +++ b/Moviehab/src/main/kotlin/com/hexated/Moviehab.kt @@ -30,7 +30,6 @@ class Moviehab : MainAPI() { "$mainUrl/library/movies?sort_by=imdb_rate&page=" to "Movies by IMDB Rating", "$mainUrl/library/shows?&sort_by=imdb_rate&page=" to "TV Shows by IMDB Rating", "$mainUrl/library/movies?&sort_by=year&page=" to "New Movies", - "$mainUrl/trending/movies" to "Trending", "$mainUrl/library/shows?&sort_by=year&page=" to "New TV Shows", "$mainUrl/library/movies?country=Philippines&sort_by=year&page=" to "New Philippines Movies", "$mainUrl/library/shows?&country=Philippines&sort_by=year&page=" to "New Philippines TV Shows", @@ -158,7 +157,7 @@ class Moviehab : MainAPI() { val res = parseJson(data) val url = if (res.season.isNullOrBlank()) { - "$mainUrl/embed/${res.id}" + "$mainUrl/embed/movie?id=${res.id}" } else { "$mainUrl/embed/series?id=${res.id}&sea=${res.season}&epi=${res.episode}" }