diff --git a/src/all/komga/build.gradle b/src/all/komga/build.gradle index d5ece1867..d70aa6132 100644 --- a/src/all/komga/build.gradle +++ b/src/all/komga/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Komga' extClass = '.KomgaFactory' - extVersionCode = 58 + extVersionCode = 59 } apply from: "$rootDir/common.gradle" diff --git a/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/Komga.kt b/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/Komga.kt index 349d9fae8..1936008b8 100644 --- a/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/Komga.kt +++ b/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/Komga.kt @@ -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" diff --git a/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/KomgaFilters.kt b/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/KomgaFilters.kt index 7a4cdcb2e..4692097b4 100644 --- a/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/KomgaFilters.kt +++ b/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/KomgaFilters.kt @@ -19,7 +19,7 @@ internal class TypeSelect : Filter.Select( 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), )