Fix: hentaifox.com second page issue (#11410)

* Make second page load correctly again

* Update build.gradle
This commit is contained in:
Nusssecke 2022-04-10 05:06:26 +02:00 committed by GitHub
parent db1685b912
commit e0c5d477d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'HentaiFox'
pkgNameSuffix = 'en.hentaifox'
extClass = '.HentaiFox'
extVersionCode = 3
extVersionCode = 4
isNsfw = true
}

View File

@ -31,7 +31,11 @@ class HentaiFox : ParsedHttpSource() {
// Popular
override fun popularMangaRequest(page: Int): Request {
return GET("$baseUrl/pag/$page/", headers)
return if (page == 2) {
GET("$baseUrl/page/$page/", headers)
} else {
GET("$baseUrl/pag/$page/", headers)
}
}
override fun popularMangaSelector() = "div.thumb"