Madokami: encode search (#8727)

This commit is contained in:
Vetle Ledaal 2025-05-04 15:31:35 +02:00 committed by Draff
parent 8e13bcd5b6
commit 9f6f2d8b12
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Madokami'
extClass = '.Madokami'
extVersionCode = 11
extVersionCode = 12
}
apply from: "$rootDir/common.gradle"

View File

@ -74,7 +74,13 @@ class Madokami : ConfigurableSource, ParsedHttpSource() {
override fun popularMangaRequest(page: Int): Request = authenticate(GET("$baseUrl/recent", headers))
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = authenticate(GET("$baseUrl/search?q=$query", headers))
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
val url = "$baseUrl/search".toHttpUrl().newBuilder()
.addQueryParameter("q", query)
.build()
return authenticate(GET(url, headers))
}
override fun searchMangaSelector() = "div.container table tbody tr td:nth-child(1) a:nth-child(1)"