Koharu: Fix Pages Not Loading, Removed Faulty Filters (#4280)
Fix Pages Not Loading, Removed Faulty Filters
This commit is contained in:
parent
4eacdd057e
commit
38ef5386a6
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'Koharu'
|
extName = 'Koharu'
|
||||||
extClass = '.Koharu'
|
extClass = '.Koharu'
|
||||||
extVersionCode = 4
|
extVersionCode = 5
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -82,10 +82,10 @@ class Koharu : HttpSource(), ConfigurableSource {
|
||||||
data.`1280` -> "1280"
|
data.`1280` -> "1280"
|
||||||
data.`980` -> "980"
|
data.`980` -> "980"
|
||||||
data.`780` -> "780"
|
data.`780` -> "780"
|
||||||
else -> "1600"
|
else -> "0"
|
||||||
}
|
}
|
||||||
|
|
||||||
val imagesResponse = client.newCall(GET("$apiBooksUrl/data/${entry.id}/${entry.public_key}/${dataKey.id}/${dataKey.public_key}?v=${entry.updated_at}&w=$realQuality", headers)).execute()
|
val imagesResponse = client.newCall(GET("$apiBooksUrl/data/${entry.id}/${entry.public_key}/${dataKey.id}/${dataKey.public_key}?v=${entry.updated_at ?: entry.created_at}&w=$realQuality", headers)).execute()
|
||||||
val images = imagesResponse.parseAs<ImagesInfo>()
|
val images = imagesResponse.parseAs<ImagesInfo>()
|
||||||
return images
|
return images
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,12 +43,9 @@ internal class CategoryFilter(name: String) :
|
||||||
internal open class CheckBoxFilter(name: String, val value: Int, state: Boolean) : Filter.CheckBox(name, state)
|
internal open class CheckBoxFilter(name: String, val value: Int, state: Boolean) : Filter.CheckBox(name, state)
|
||||||
|
|
||||||
private val getSortsList: List<Pair<String, String>> = listOf(
|
private val getSortsList: List<Pair<String, String>> = listOf(
|
||||||
Pair("ID", "1"),
|
Pair("Recently Posted", "4"),
|
||||||
Pair("Title", "2"),
|
Pair("Title", "2"),
|
||||||
Pair("Pages", "3"),
|
Pair("Pages", "3"),
|
||||||
Pair("Recently Posted", ""),
|
|
||||||
Pair("Recently Updated", "5"),
|
|
||||||
Pair("Original Posted Date", "6"),
|
|
||||||
Pair("Most Viewed", "8"),
|
Pair("Most Viewed", "8"),
|
||||||
Pair("Most Favorited", "9"),
|
Pair("Most Favorited", "9"),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue