mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-25 19:52:56 +01:00
Rawdevart.art: Fix pagination (#816)
This commit is contained in:
parent
fd1554905f
commit
b4260c14ce
@ -1,7 +1,7 @@
|
|||||||
ext {
|
ext {
|
||||||
extName = "Rawdevart.art"
|
extName = "Rawdevart.art"
|
||||||
extClass = ".Rawdevartart"
|
extClass = ".Rawdevartart"
|
||||||
extVersionCode = 1
|
extVersionCode = 2
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,10 +57,11 @@ class Rawdevartart : HttpSource() {
|
|||||||
|
|
||||||
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
|
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
|
||||||
val url = "$baseUrl/spa".toHttpUrl().newBuilder().apply {
|
val url = "$baseUrl/spa".toHttpUrl().newBuilder().apply {
|
||||||
|
addQueryParameter("page", page.toString())
|
||||||
|
|
||||||
if (query.isNotEmpty()) {
|
if (query.isNotEmpty()) {
|
||||||
addPathSegment("search")
|
addPathSegment("search")
|
||||||
addQueryParameter("query", query)
|
addQueryParameter("query", query)
|
||||||
addQueryParameter("page", page.toString())
|
|
||||||
|
|
||||||
return@apply
|
return@apply
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user