NovelCool: correctly parse api reponse on search (#17463)
correctly parse api reponse on search
This commit is contained in:
parent
d19e67ed2d
commit
1ef336b1ef
|
@ -6,7 +6,7 @@ ext {
|
||||||
extName = 'NovelCool'
|
extName = 'NovelCool'
|
||||||
pkgNameSuffix = 'all.novelcool'
|
pkgNameSuffix = 'all.novelcool'
|
||||||
extClass = '.NovelCoolFactory'
|
extClass = '.NovelCoolFactory'
|
||||||
extVersionCode = 1
|
extVersionCode = 2
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -121,7 +121,7 @@ open class NovelCool(
|
||||||
return when (preference.useAppApi) {
|
return when (preference.useAppApi) {
|
||||||
true -> client.newCall(commonApiRequest("$apiUrl/book/search/", page, query))
|
true -> client.newCall(commonApiRequest("$apiUrl/book/search/", page, query))
|
||||||
.asObservableSuccess()
|
.asObservableSuccess()
|
||||||
.map(::popularMangaParse)
|
.map(::commonApiResponseParse)
|
||||||
else -> super.fetchSearchManga(page, query, filters)
|
else -> super.fetchSearchManga(page, query, filters)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue