fixed YomoviesProvider

This commit is contained in:
hexated 2022-09-12 23:44:05 +07:00
parent 9ad8d8a6f4
commit 7b8812ac46
4 changed files with 13 additions and 6 deletions

View file

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

View file

@ -33,7 +33,11 @@ class YomoviesProvider : MainAPI() {
page: Int,
request: MainPageRequest
): HomePageResponse {
val document = app.get(request.data + page).document
val document = if (page == 1) {
app.get(request.data.removeSuffix("page/")).document
} else {
app.get(request.data + page).document
}
val home = document.select("div.ml-item").mapNotNull {
it.toSearchResult()
}