This commit is contained in:
jack 2023-11-21 22:25:22 +07:00
parent 18a4db4051
commit 379525d83b
2 changed files with 2 additions and 3 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 1
version = 2
cloudstream {

View file

@ -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<Episodes>(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}"
}