Dynasty: sort by "Best Match" by default & update covers (#11359)

* update tags & covers

* sort by best match by default

* update covers
This commit is contained in:
AwkwardPeak7 2025-11-01 12:57:46 +05:00 committed by Draff
parent 05817f38c2
commit b26e4829de
Signed by: Draff
GPG Key ID: E8A89F3211677653
5 changed files with 6 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
ext {
extName = 'Dynasty'
extClass = '.DynastyFactory'
extVersionCode = 27
extVersionCode = 28
isNsfw = true
}

View File

@ -1,7 +1,6 @@
package eu.kanade.tachiyomi.extension.en.dynasty
import android.content.SharedPreferences
import android.util.LruCache
import androidx.preference.ListPreference
import androidx.preference.PreferenceScreen
import eu.kanade.tachiyomi.network.GET
@ -150,8 +149,9 @@ open class Dynasty : HttpSource(), ConfigurableSource {
)
}
// lazy because extension inspector doesn't have implementation
private val lruCache by lazy { LruCache<String, Int>(15) }
private val lruCache = object : LinkedHashMap<String, Int>() {
override fun removeEldestEntry(eldest: MutableMap.MutableEntry<String, Int>?) = size > 20
}
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
val typeFilter = filters.firstInstance<TypeFilter>()

View File

@ -6,7 +6,6 @@ import kotlinx.serialization.Serializable
class SortFilter : Filter.Select<String>(
name = "Sort",
values = selectOptions.map { it.first }.toTypedArray(),
state = 3,
) {
val sort get() = selectOptions[state].second
}