Merge pull request #581 from NagaYZ/fix-popular-page-url

Fix popular page url
Koitharu 2 years ago committed by GitHub
commit deee80ae71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -55,19 +55,21 @@ internal class NHentaiParser(context: MangaLoaderContext) :
} }
append("/") append("/")
if (filter.sortOrder == SortOrder.POPULARITY) { if (filter.sortOrder == SortOrder.POPULARITY) {
append("popular/") append("popular")
}
if(page > 1){
append("?")
} }
append("?")
} else if (filter.locale != null) { } else if (filter.locale != null) {
append("/language/") append("/language/")
append(filter.locale.toLanguagePath()) append(filter.locale.toLanguagePath())
append("/") append("/")
if (filter.sortOrder == SortOrder.POPULARITY) { if (filter.sortOrder == SortOrder.POPULARITY) {
append("popular/") append("popular")
}
if(page > 1){
append("?")
} }
append("?")
} else { } else {
if (filter.sortOrder == SortOrder.POPULARITY) { if (filter.sortOrder == SortOrder.POPULARITY) {
append("/?sort=popular&") append("/?sort=popular&")
@ -79,8 +81,10 @@ internal class NHentaiParser(context: MangaLoaderContext) :
null -> append("/?") null -> append("/?")
} }
append("page=") if(page > 1){
append(page.toString()) append("page=")
append(page.toString())
}
} }
return parseMangaList(webClient.httpGet(url).parseHtml()) return parseMangaList(webClient.httpGet(url).parseHtml())
} }

Loading…
Cancel
Save