mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed YomoviesProvider
This commit is contained in:
parent
9ad8d8a6f4
commit
7b8812ac46
4 changed files with 13 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 3
|
||||
version = 4
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue