Readcomicsnet fix: add missing page index query in search (#4672)
* missing page index query in search * version num * Update src/en/readcomicnet/src/eu/kanade/tachiyomi/extension/en/readcomicnet/ReadcomicNet.kt Co-authored-by: Vetle Ledaal <vetle.ledaal@gmail.com> --------- Co-authored-by: Vetle Ledaal <vetle.ledaal@gmail.com>
This commit is contained in:
parent
7f456c6dc0
commit
cb17be204b
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'ReadComicNet'
|
extName = 'ReadComicNet'
|
||||||
extClass = '.ReadcomicNet'
|
extClass = '.ReadcomicNet'
|
||||||
extVersionCode = 1
|
extVersionCode = 2
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -48,6 +48,7 @@ class ReadcomicNet : ParsedHttpSource() {
|
||||||
GET(
|
GET(
|
||||||
"$baseUrl/advanced-search".toHttpUrl().newBuilder().apply {
|
"$baseUrl/advanced-search".toHttpUrl().newBuilder().apply {
|
||||||
addQueryParameter("key", query)
|
addQueryParameter("key", query)
|
||||||
|
addQueryParameter("page", page.toString())
|
||||||
if (!filters.isEmpty()) {
|
if (!filters.isEmpty()) {
|
||||||
for (filter in filters) {
|
for (filter in filters) {
|
||||||
when (filter) {
|
when (filter) {
|
||||||
|
@ -113,7 +114,8 @@ class ReadcomicNet : ParsedHttpSource() {
|
||||||
date_upload = element.nextElementSibling()!!.text().let {
|
date_upload = element.nextElementSibling()!!.text().let {
|
||||||
dateFormat.parse(it)?.time ?: 0L
|
dateFormat.parse(it)?.time ?: 0L
|
||||||
}
|
}
|
||||||
} catch (exception: Exception) {}
|
} catch (exception: Exception) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun pageListParse(document: Document): List<Page> {
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
|
@ -129,6 +131,7 @@ class ReadcomicNet : ParsedHttpSource() {
|
||||||
return stateArray[this.state]
|
return stateArray[this.state]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private class Genre(name: String, val gid: String) : Filter.TriState(name)
|
private class Genre(name: String, val gid: String) : Filter.TriState(name)
|
||||||
private class GenreList(genres: List<Genre>) : Filter.Group<Genre>("Genres", genres) {
|
private class GenreList(genres: List<Genre>) : Filter.Group<Genre>("Genres", genres) {
|
||||||
val included: List<String>
|
val included: List<String>
|
||||||
|
|
Loading…
Reference in New Issue