Fix Bakai source (#1940)

Fix popular and search URL
This commit is contained in:
Chopper 2024-03-17 15:05:55 -03:00 committed by Draff
parent 6a1d7dc1ca
commit 867f0844d1
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Bakai'
extClass = '.Bakai'
extVersionCode = 2
extVersionCode = 3
isNsfw = true
}

View File

@ -54,7 +54,7 @@ class Bakai : ParsedHttpSource() {
}
// ============================== Popular ===============================
override fun popularMangaRequest(page: Int) = GET("$baseUrl/home1/page/$page/")
override fun popularMangaRequest(page: Int) = GET("$baseUrl/home3/page/$page/")
override fun popularMangaSelector() = "#elCmsPageWrap ul > li > article"
@ -103,7 +103,7 @@ class Bakai : ParsedHttpSource() {
}
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
val url = "$baseUrl/search1/".toHttpUrl().newBuilder()
val url = "$baseUrl/search3/".toHttpUrl().newBuilder()
.addQueryParameter("q", query)
.addQueryParameter("type", "cms_records1")
.addQueryParameter("page", page.toString())