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("/")
if (filter.sortOrder == SortOrder.POPULARITY) {
append("popular/")
append("popular")
}
if(page > 1){
append("?")
}
} else if (filter.locale != null) {
append("/language/")
append(filter.locale.toLanguagePath())
append("/")
if (filter.sortOrder == SortOrder.POPULARITY) {
append("popular/")
append("popular")
}
if(page > 1){
append("?")
}
} else {
if (filter.sortOrder == SortOrder.POPULARITY) {
append("/?sort=popular&")
@ -79,9 +81,11 @@ internal class NHentaiParser(context: MangaLoaderContext) :
null -> append("/?")
}
if(page > 1){
append("page=")
append(page.toString())
}
}
return parseMangaList(webClient.httpGet(url).parseHtml())
}

Loading…
Cancel
Save