Mangahub: Page fix (#564)

Mangahub: Page fix
This commit is contained in:
JustRoxy 2018-10-18 22:35:31 +03:00 committed by Carlos
parent 5ea82689d5
commit b6c9398d8b
2 changed files with 5 additions and 5 deletions

View File

@ -5,8 +5,8 @@ ext {
appName = 'Tachiyomi: Mangahub'
pkgNameSuffix = 'ru.mangahub'
extClass = '.Mangahub'
extVersionCode = 1
extVersionSuffix = 1
extVersionCode = 2
extVersionSuffix = 2
libVersion = '1.2'
}

View File

@ -21,10 +21,10 @@ open class Mangahub : ParsedHttpSource() {
override val supportsLatest = true
override fun popularMangaRequest(page: Int): Request =
GET("$baseUrl/explore?search[sort]=rating&search[dateStart][left_number]=1972&search[dateStart][right_number]=2018&page=${page + 1}", headers)
GET("$baseUrl/explore?search[sort]=rating&search[dateStart][left_number]=1972&search[dateStart][right_number]=2018&page=$page", headers)
override fun latestUpdatesRequest(page: Int): Request =
GET("$baseUrl/explore?search[sort]=update&search[dateStart][left_number]=1972&search[dateStart][right_number]=2018&page=${page + 1}", headers)
GET("$baseUrl/explore?search[sort]=update&search[dateStart][left_number]=1972&search[dateStart][right_number]=2018&page=$page", headers)
override fun popularMangaSelector() = "div.list-element"
@ -46,7 +46,7 @@ open class Mangahub : ParsedHttpSource() {
override fun latestUpdatesNextPageSelector() = ".next"
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
return GET("$baseUrl/search/manga?query=$query&sort=score&page=${page + 1}")
return GET("$baseUrl/search/manga?query=$query&sort=score&page=$page")
}
override fun searchMangaSelector() = popularMangaSelector()