Rawdevart.art: Fix pagination (#816)

This commit is contained in:
beerpsi 2024-01-31 01:52:08 +07:00 committed by GitHub
parent fd1554905f
commit b4260c14ce
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
}