From 56f64ce41c2b0041c2fb6f01692b2a62d293e695 Mon Sep 17 00:00:00 2001 From: beerpsi <92439990+beerpiss@users.noreply.github.com> Date: Wed, 31 Jan 2024 01:52:08 +0700 Subject: [PATCH] Rawdevart.art: Fix pagination (#816) --- src/ja/rawdevartart/build.gradle | 2 +- .../kanade/tachiyomi/extension/ja/rawdevartart/Rawdevartart.kt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ja/rawdevartart/build.gradle b/src/ja/rawdevartart/build.gradle index 90dd6a353..4146a9c9a 100644 --- a/src/ja/rawdevartart/build.gradle +++ b/src/ja/rawdevartart/build.gradle @@ -1,7 +1,7 @@ ext { extName = "Rawdevart.art" extClass = ".Rawdevartart" - extVersionCode = 1 + extVersionCode = 2 isNsfw = true } diff --git a/src/ja/rawdevartart/src/eu/kanade/tachiyomi/extension/ja/rawdevartart/Rawdevartart.kt b/src/ja/rawdevartart/src/eu/kanade/tachiyomi/extension/ja/rawdevartart/Rawdevartart.kt index fec3fb0bf..1db42644b 100644 --- a/src/ja/rawdevartart/src/eu/kanade/tachiyomi/extension/ja/rawdevartart/Rawdevartart.kt +++ b/src/ja/rawdevartart/src/eu/kanade/tachiyomi/extension/ja/rawdevartart/Rawdevartart.kt @@ -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 }