Fix kiryuu next page selector (#3225)

Fix kiryuu next page selector
This commit is contained in:
Miftakhuddin Falaki 2020-05-18 19:11:55 +07:00 committed by GitHub
parent 00e5c6a531
commit af17930c45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Kiryuu'
pkgNameSuffix = 'id.kiryuu'
extClass = '.Kiryuu'
extVersionCode = 1
extVersionCode = 2
libVersion = '1.2'
}

View File

@ -23,15 +23,15 @@ class Kiryuu : 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 searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
val builtUrl = if (page == 1) "$baseUrl/manga/" else "$baseUrl/manga/page/$page/"
val builtUrl = if (page == 1) "$baseUrl/manga/" else "$baseUrl/manga/?page=$page"
val url = HttpUrl.parse(builtUrl)!!.newBuilder()
url.addQueryParameter("title", query)
url.addQueryParameter("page", page.toString())
@ -84,7 +84,7 @@ class Kiryuu : ParsedHttpSource() {
override fun searchMangaFromElement(element: Element): SManga = popularMangaFromElement(element)
override fun latestUpdatesFromElement(element: Element): SManga = popularMangaFromElement(element)
override fun popularMangaNextPageSelector() = "a.next.page-numbers"
override fun popularMangaNextPageSelector() = "a.r"
override fun latestUpdatesNextPageSelector() = popularMangaNextPageSelector()
override fun searchMangaNextPageSelector() = popularMangaNextPageSelector()