Fix Mangashiro next page selector (#3243)

* Fix Mangashiro next page selector

* update build gradle
This commit is contained in:
Miftakhuddin Falaki 2020-05-20 00:20:37 +07:00 committed by GitHub
parent fc377d56ad
commit 317e8c4177
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Mangashiro'
pkgNameSuffix = 'id.mangashiro'
extClass = '.Mangashiro'
extVersionCode = 3
extVersionCode = 4
libVersion = '1.2'
}

View File

@ -23,11 +23,11 @@ class Mangashiro : ParsedHttpSource() {
override val client: OkHttpClient = network.cloudflareClient
override fun popularMangaRequest(page: Int): Request {
return GET("$baseUrl/manga/page/$page/?order=popular", headers)
return GET("$baseUrl/manga/?order=popular&page=$page", headers)
}
override fun latestUpdatesRequest(page: Int): Request {
return GET("$baseUrl/manga/page/$page/?order=latest", headers)
return GET("$baseUrl/manga/?order=update&page=$page", headers)
}
override fun popularMangaSelector() = "div.bs"
@ -37,7 +37,7 @@ class Mangashiro : ParsedHttpSource() {
override fun popularMangaFromElement(element: Element): SManga = searchMangaFromElement(element)
override fun latestUpdatesFromElement(element: Element): SManga = searchMangaFromElement(element)
override fun popularMangaNextPageSelector() = "a.next.page-numbers"
override fun popularMangaNextPageSelector() = "a.r"
override fun latestUpdatesNextPageSelector() = popularMangaNextPageSelector()
override fun searchMangaNextPageSelector() = popularMangaNextPageSelector()