diff --git a/src/all/pixiv/build.gradle b/src/all/pixiv/build.gradle index 51a48e1bf..91174fa15 100644 --- a/src/all/pixiv/build.gradle +++ b/src/all/pixiv/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Pixiv' pkgNameSuffix = 'all.pixiv' extClass = '.PixivFactory' - extVersionCode = 1 + extVersionCode = 2 isNsfw = true } diff --git a/src/all/pixiv/src/eu/kanade/tachiyomi/extension/all/pixiv/Pixiv.kt b/src/all/pixiv/src/eu/kanade/tachiyomi/extension/all/pixiv/Pixiv.kt index d5b0ebad4..3c675be77 100644 --- a/src/all/pixiv/src/eu/kanade/tachiyomi/extension/all/pixiv/Pixiv.kt +++ b/src/all/pixiv/src/eu/kanade/tachiyomi/extension/all/pixiv/Pixiv.kt @@ -88,7 +88,7 @@ class Pixiv(override val lang: String) : HttpSource() { apiResponseParse(response) override fun popularMangaRequest(page: Int): Request = - searchMangaRequest(page, "漫画", FilterList()) + searchMangaRequest(page, "", FilterList()) override fun popularMangaParse(response: Response) = MangasPage( mangas = apiResponseParse(response) @@ -111,7 +111,7 @@ class Pixiv(override val lang: String) : HttpSource() { } } - val word = URLEncoder.encode(query, "UTF-8") + val word = URLEncoder.encode(query.ifBlank { "漫画" }, "UTF-8").replace("+", "%20") val type = if (includeNonManga) "artworks" else "manga" val parameters = mapOf( @@ -142,7 +142,7 @@ class Pixiv(override val lang: String) : HttpSource() { } override fun latestUpdatesRequest(page: Int): Request = - searchMangaRequest(page, "漫画", FilterList()) + searchMangaRequest(page, "", FilterList()) override fun latestUpdatesParse(response: Response): MangasPage = searchMangaParse(response)