diff --git a/src/all/myreadingmanga/build.gradle b/src/all/myreadingmanga/build.gradle index 95fc07487..78fe074d4 100644 --- a/src/all/myreadingmanga/build.gradle +++ b/src/all/myreadingmanga/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'MyReadingManga' extClass = '.MyReadingMangaFactory' - extVersionCode = 54 + extVersionCode = 55 isNsfw = true } diff --git a/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt b/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt index 1d03350a5..4c77f1e85 100644 --- a/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt +++ b/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt @@ -318,7 +318,16 @@ open class MyReadingManga(override val lang: String, private val siteLang: Strin Filter.Select(displayName, vals.map { it }.toTypedArray(), defaultValue), UriFilter { override fun addToUri(uri: Uri.Builder, uriParam: String) { if (state != 0 || !firstIsUnspecified) { - uri.appendQueryParameter(uriParam, "$uriValuePrefix:${vals[state]}") + val splitFilter = vals[state].split(",") + when { + splitFilter.size == 1 -> { + val reversedFilter = splitFilter.reversed().joinToString(" | ").trim() + uri.appendQueryParameter(uriParam, "$uriValuePrefix:$reversedFilter") + } + else -> { + uri.appendQueryParameter(uriParam, "$uriValuePrefix:${vals[state]}") + } + } } } }