Koharu: Fix Pages Not Loading, Removed Faulty Filters (#4280)

Fix Pages Not Loading, Removed Faulty Filters
This commit is contained in:
KenjieDec 2024-07-27 21:04:56 +07:00 committed by Draff
parent 4eacdd057e
commit 38ef5386a6
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
3 changed files with 4 additions and 7 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'Koharu' extName = 'Koharu'
extClass = '.Koharu' extClass = '.Koharu'
extVersionCode = 4 extVersionCode = 5
isNsfw = true isNsfw = true
} }

View File

@ -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
} }

View File

@ -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"),
) )