Rawdevart.art: Fix pagination (#816)
CI / Prepare job (push) Successful in 3s Details
CI / Build multisrc modules (push) Failing after 27s Details
CI / Build individual modules (push) Failing after 7s Details
CI / Publish repo (push) Has been skipped Details

This commit is contained in:
beerpsi 2024-01-31 01:52:08 +07:00 committed by Draff
parent 280d7eb814
commit 56f64ce41c
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = "Rawdevart.art"
extClass = ".Rawdevartart"
extVersionCode = 1
extVersionCode = 2
isNsfw = true
}

View File

@ -57,10 +57,11 @@ class Rawdevartart : HttpSource() {
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
val url = "$baseUrl/spa".toHttpUrl().newBuilder().apply {
addQueryParameter("page", page.toString())
if (query.isNotEmpty()) {
addPathSegment("search")
addQueryParameter("query", query)
addQueryParameter("page", page.toString())
return@apply
}