fix
This commit is contained in:
parent
39186fbc68
commit
4b74482065
1 changed files with 19 additions and 19 deletions
|
@ -39,28 +39,28 @@ class Fushaar : MainAPI() {
|
||||||
}
|
}
|
||||||
|
|
||||||
override val mainPage = mainPageOf(
|
override val mainPage = mainPageOf(
|
||||||
"Movies" to "$mainUrl",
|
"$mainUrl/page/" to "Movies",
|
||||||
"Herror" to "$mainUrl/gerne/herror",
|
"$mainUrl/gerne/action/page/" to "Action",
|
||||||
"Thriller" to "$mainUrl/gerne/thriller",
|
"$mainUrl/gerne/adventure/page/" to "Adventure",
|
||||||
"Action" to "$mainUrl/gerne/action",
|
"$mainUrl/gerne/animation/page/" to "Animation",
|
||||||
"Animation" to "$mainUrl/gerne/animation",
|
"$mainUrl/gerne/biography/page/" to "Biography",
|
||||||
"Comedy" to "$mainUrl/gerne/comedy",
|
"$mainUrl/gerne/comedy/page/" to "Comedy",
|
||||||
"Sci-fi" to "$mainUrl/gerne/sci-fi",
|
"$mainUrl/gerne/crime/page/" to "Crime",
|
||||||
"Crime" to "$mainUrl/gerne/crime",
|
"$mainUrl/gerne/documentary/page/" to "Documentary",
|
||||||
"Drama" to "$mainUrl/gerne/drama",
|
"$mainUrl/gerne/drama/page/" to "Drama",
|
||||||
"Adventure" to "$mainUrl/gerne/adventure",
|
"$mainUrl/gerne/family/page/" to "Family",
|
||||||
"Biography" to "$mainUrl/gerne/biography",
|
"$mainUrl/gerne/herror/page/" to "Herror",
|
||||||
"Music" to "$mainUrl/gerne/music",
|
"$mainUrl/gerne/history/page/" to "History",
|
||||||
"Sport" to "$mainUrl/gerne/sport",
|
"$mainUrl/gerne/music/page/" to "Music",
|
||||||
"Documentary" to "$mainUrl/gerne/documentary",
|
"$mainUrl/gerne/mystery/page/" to "Mystery",
|
||||||
"History" to "$mainUrl/gerne/history",
|
"$mainUrl/gerne/romance/page/" to "Romance",
|
||||||
"Family" to "$mainUrl/gerne/family",
|
"$mainUrl/gerne/sci-fi/page/" to "Sci-fi",
|
||||||
"Romance" to "$mainUrl/gerne/romance",
|
"$mainUrl/gerne/sport/page/" to "Sport",
|
||||||
"Mystery" to "$mainUrl/gerne/mystery"
|
"$mainUrl/gerne/thriller/page/" to "Thriller",
|
||||||
)
|
)
|
||||||
|
|
||||||
override suspend fun getMainPage(page: Int, request : MainPageRequest): HomePageResponse {
|
override suspend fun getMainPage(page: Int, request : MainPageRequest): HomePageResponse {
|
||||||
val doc = app.get(request.data + "/page/$page/").document
|
val doc = app.get(request.data + page).document
|
||||||
val list = doc.select("article.poster").mapNotNull { element ->
|
val list = doc.select("article.poster").mapNotNull { element ->
|
||||||
element.toSearchResponse()
|
element.toSearchResponse()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue