Merge pull request #581 from NagaYZ/fix-popular-page-url
Fix popular page url
This commit is contained in:
@@ -55,19 +55,21 @@ internal class NHentaiParser(context: MangaLoaderContext) :
|
||||
}
|
||||
append("/")
|
||||
if (filter.sortOrder == SortOrder.POPULARITY) {
|
||||
append("popular/")
|
||||
append("popular")
|
||||
}
|
||||
if(page > 1){
|
||||
append("?")
|
||||
}
|
||||
|
||||
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("?")
|
||||
}
|
||||
|
||||
append("?")
|
||||
} else {
|
||||
if (filter.sortOrder == SortOrder.POPULARITY) {
|
||||
append("/?sort=popular&")
|
||||
@@ -79,8 +81,10 @@ internal class NHentaiParser(context: MangaLoaderContext) :
|
||||
|
||||
null -> append("/?")
|
||||
}
|
||||
append("page=")
|
||||
append(page.toString())
|
||||
if(page > 1){
|
||||
append("page=")
|
||||
append(page.toString())
|
||||
}
|
||||
}
|
||||
return parseMangaList(webClient.httpGet(url).parseHtml())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user