Skip to content

Commit

Permalink
fixed #391
Browse files Browse the repository at this point in the history
  • Loading branch information
jackjohn committed Nov 21, 2023
1 parent 18a4db4 commit 379525d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Moviehab/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// use an integer for version numbers
version = 1
version = 2


cloudstream {
Expand Down
3 changes: 1 addition & 2 deletions Moviehab/src/main/kotlin/com/hexated/Moviehab.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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}"
}
Expand Down

0 comments on commit 379525d

Please sign in to comment.