Pixiv: search fixes (#15432)
This commit is contained in:
parent
6366c65903
commit
c3dfbcdebe
|
@ -6,7 +6,7 @@ ext {
|
||||||
extName = 'Pixiv'
|
extName = 'Pixiv'
|
||||||
pkgNameSuffix = 'all.pixiv'
|
pkgNameSuffix = 'all.pixiv'
|
||||||
extClass = '.PixivFactory'
|
extClass = '.PixivFactory'
|
||||||
extVersionCode = 1
|
extVersionCode = 2
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,7 @@ class Pixiv(override val lang: String) : HttpSource() {
|
||||||
apiResponseParse(response)
|
apiResponseParse(response)
|
||||||
|
|
||||||
override fun popularMangaRequest(page: Int): Request =
|
override fun popularMangaRequest(page: Int): Request =
|
||||||
searchMangaRequest(page, "漫画", FilterList())
|
searchMangaRequest(page, "", FilterList())
|
||||||
|
|
||||||
override fun popularMangaParse(response: Response) = MangasPage(
|
override fun popularMangaParse(response: Response) = MangasPage(
|
||||||
mangas = apiResponseParse<PixivSearchResults>(response)
|
mangas = apiResponseParse<PixivSearchResults>(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 type = if (includeNonManga) "artworks" else "manga"
|
||||||
|
|
||||||
val parameters = mapOf(
|
val parameters = mapOf(
|
||||||
|
@ -142,7 +142,7 @@ class Pixiv(override val lang: String) : HttpSource() {
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun latestUpdatesRequest(page: Int): Request =
|
override fun latestUpdatesRequest(page: Int): Request =
|
||||||
searchMangaRequest(page, "漫画", FilterList())
|
searchMangaRequest(page, "", FilterList())
|
||||||
|
|
||||||
override fun latestUpdatesParse(response: Response): MangasPage =
|
override fun latestUpdatesParse(response: Response): MangasPage =
|
||||||
searchMangaParse(response)
|
searchMangaParse(response)
|
||||||
|
|
Loading…
Reference in New Issue