Fix broken pagination in BK (#17863)

Fix broken pagination in BK.
This commit is contained in:
Alessandro Jean 2023-09-09 18:56:22 -03:00 committed by GitHub
parent dc237650ea
commit 14b761ada7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Bakai'
pkgNameSuffix = 'pt.bakai'
extClass = '.Bakai'
extVersionCode = 3
extVersionCode = 4
isNsfw = true
}

View File

@ -44,7 +44,7 @@ class Bakai : ParsedHttpSource() {
override fun popularMangaNextPageSelector(): String = latestUpdatesNextPageSelector()
override fun latestUpdatesRequest(page: Int): Request {
val path = if (page > 1) "home/page/$page/" else ""
val path = if (page > 1) "home2/page/$page/" else ""
return GET("$baseUrl/$path", headers)
}
@ -60,7 +60,7 @@ class Bakai : ParsedHttpSource() {
"#elCmsPageWrap ul.ipsPagination li.ipsPagination_next:not(.ipsPagination_inactive)"
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
val url = "$baseUrl/search/".toHttpUrl().newBuilder()
val url = "$baseUrl/search2/".toHttpUrl().newBuilder()
.addQueryParameter("q", query)
.addQueryParameter("type", "cms_records1")
.addQueryParameter("search_in", "titles")