MyReadingManga: fix split filter check (#7073)

fix
This commit is contained in:
dngonz 2025-01-09 15:31:17 +01:00 committed by Draff
parent c9b85253ed
commit e1c5cc473e
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'MyReadingManga' extName = 'MyReadingManga'
extClass = '.MyReadingMangaFactory' extClass = '.MyReadingMangaFactory'
extVersionCode = 55 extVersionCode = 56
isNsfw = true isNsfw = true
} }

View File

@ -320,7 +320,7 @@ open class MyReadingManga(override val lang: String, private val siteLang: Strin
if (state != 0 || !firstIsUnspecified) { if (state != 0 || !firstIsUnspecified) {
val splitFilter = vals[state].split(",") val splitFilter = vals[state].split(",")
when { when {
splitFilter.size == 1 -> { splitFilter.size == 2 -> {
val reversedFilter = splitFilter.reversed().joinToString(" | ").trim() val reversedFilter = splitFilter.reversed().joinToString(" | ").trim()
uri.appendQueryParameter(uriParam, "$uriValuePrefix:$reversedFilter") uri.appendQueryParameter(uriParam, "$uriValuePrefix:$reversedFilter")
} }