Kemono fix search pages (#7279)

* Kemono fix search pages

* Update build.gradle.kts

* Update Kemono.kt
This commit is contained in:
spicemace 2025-02-01 04:25:33 -08:00 committed by Draff
parent 25bac4f262
commit 7722a6e458
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 3 additions and 3 deletions

View File

@ -2,4 +2,4 @@ plugins {
id("lib-multisrc")
}
baseVersionCode = 16
baseVersionCode = 17

View File

@ -107,7 +107,7 @@ open class Kemono(
}
var mangas = mangasCache
if (page == 1) {
if (page == 1 || mangasCache.isEmpty()) {
var favourites: List<KemonoFavouritesDto> = emptyList()
if (fav != null) {
val favores = client.newCall(GET("$baseUrl/$apiPath/account/favorites", headers)).execute()
@ -132,7 +132,7 @@ open class Kemono(
includeType && !excludeType && isFavourited &&
regularSearch
}.also { mangasCache = mangas }
}.also { mangasCache = it }
}
val sorted = when (sort.first) {