Pixiv: fix search repeats itself (#5149)
* Pixiv: fix search repeats itself * bump version
This commit is contained in:
parent
38a6e8b12b
commit
a2917fa1f0
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'Pixiv'
|
extName = 'Pixiv'
|
||||||
extClass = '.PixivFactory'
|
extClass = '.PixivFactory'
|
||||||
extVersionCode = 8
|
extVersionCode = 9
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,7 @@ class Pixiv(override val lang: String) : HttpSource() {
|
||||||
|
|
||||||
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> {
|
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> {
|
||||||
val filters = filters.list as PixivFilters
|
val filters = filters.list as PixivFilters
|
||||||
val hash = Pair(query, filters).hashCode()
|
val hash = Pair(query, filters.toList()).hashCode()
|
||||||
|
|
||||||
if (hash != searchHash || page == 1) {
|
if (hash != searchHash || page == 1) {
|
||||||
searchHash = hash
|
searchHash = hash
|
||||||
|
|
Loading…
Reference in New Issue