Komga: Add random sort option for Komga 1.16.0 (#6963)
Komga: Add random sort option
This commit is contained in:
parent
3e2f37043b
commit
5d402cc101
|
@ -1,7 +1,7 @@
|
|||
ext {
|
||||
extName = 'Komga'
|
||||
extClass = '.KomgaFactory'
|
||||
extVersionCode = 58
|
||||
extVersionCode = 59
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
|
|
@ -156,6 +156,7 @@ open class Komga(private val suffix: String = "") : ConfigurableSource, Unmetere
|
|||
1 -> if (type == "series") "metadata.titleSort" else "name"
|
||||
2 -> "createdDate"
|
||||
3 -> "lastModifiedDate"
|
||||
4 -> "random"
|
||||
else -> return@forEach
|
||||
} + "," + if (state.ascending) "asc" else "desc"
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ internal class TypeSelect : Filter.Select<String>(
|
|||
|
||||
internal class SeriesSort(selection: Selection? = null) : Filter.Sort(
|
||||
"Sort",
|
||||
arrayOf("Relevance", "Alphabetically", "Date added", "Date updated"),
|
||||
arrayOf("Relevance", "Alphabetically", "Date added", "Date updated", "Random"),
|
||||
selection ?: Selection(0, false),
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue