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 {
|
||||
extName = 'Koharu'
|
||||
extClass = '.Koharu'
|
||||
extVersionCode = 4
|
||||
extVersionCode = 5
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
|
@ -82,10 +82,10 @@ class Koharu : HttpSource(), ConfigurableSource {
|
|||
data.`1280` -> "1280"
|
||||
data.`980` -> "980"
|
||||
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>()
|
||||
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)
|
||||
|
||||
private val getSortsList: List<Pair<String, String>> = listOf(
|
||||
Pair("ID", "1"),
|
||||
Pair("Recently Posted", "4"),
|
||||
Pair("Title", "2"),
|
||||
Pair("Pages", "3"),
|
||||
Pair("Recently Posted", ""),
|
||||
Pair("Recently Updated", "5"),
|
||||
Pair("Original Posted Date", "6"),
|
||||
Pair("Most Viewed", "8"),
|
||||
Pair("Most Favorited", "9"),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue