WPMangaStream: Fixed Status filter (#11432)
This commit is contained in:
parent
6defaacb09
commit
cbb9470b3b
|
@ -153,12 +153,7 @@ abstract class WPMangaStream(
|
||||||
url.addQueryParameter("yearx", filter.state)
|
url.addQueryParameter("yearx", filter.state)
|
||||||
}
|
}
|
||||||
is StatusFilter -> {
|
is StatusFilter -> {
|
||||||
val status = when (filter.state) {
|
url.addQueryParameter("status", filter.toUriPart())
|
||||||
Filter.TriState.STATE_INCLUDE -> "completed"
|
|
||||||
Filter.TriState.STATE_EXCLUDE -> "ongoing"
|
|
||||||
else -> ""
|
|
||||||
}
|
|
||||||
url.addQueryParameter("status", status)
|
|
||||||
}
|
}
|
||||||
is TypeFilter -> {
|
is TypeFilter -> {
|
||||||
url.addQueryParameter("type", filter.toUriPart())
|
url.addQueryParameter("type", filter.toUriPart())
|
||||||
|
@ -462,7 +457,9 @@ abstract class WPMangaStream(
|
||||||
arrayOf(
|
arrayOf(
|
||||||
Pair("All", ""),
|
Pair("All", ""),
|
||||||
Pair("Ongoing", "ongoing"),
|
Pair("Ongoing", "ongoing"),
|
||||||
Pair("Completed", "completed")
|
Pair("Completed", "completed"),
|
||||||
|
Pair("Hiatus", "hiatus"),
|
||||||
|
Pair("Dropped", "dropped")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -513,17 +510,21 @@ abstract class WPMangaStream(
|
||||||
Genre("Completed", "completed"),
|
Genre("Completed", "completed"),
|
||||||
Genre("Cooking", "cooking"),
|
Genre("Cooking", "cooking"),
|
||||||
Genre("Crime", "crime"),
|
Genre("Crime", "crime"),
|
||||||
|
Genre("Cultivation", "cultivation"),
|
||||||
Genre("Demon", "demon"),
|
Genre("Demon", "demon"),
|
||||||
Genre("Demons", "demons"),
|
Genre("Demons", "demons"),
|
||||||
Genre("Doujinshi", "doujinshi"),
|
Genre("Doujinshi", "doujinshi"),
|
||||||
Genre("Drama", "drama"),
|
Genre("Drama", "drama"),
|
||||||
|
Genre("Dungeons", "dungeons"),
|
||||||
Genre("Ecchi", "ecchi"),
|
Genre("Ecchi", "ecchi"),
|
||||||
Genre("Fantasy", "fantasy"),
|
Genre("Fantasy", "fantasy"),
|
||||||
Genre("Game", "game"),
|
Genre("Game", "game"),
|
||||||
Genre("Games", "games"),
|
Genre("Games", "games"),
|
||||||
Genre("Gender Bender", "gender-bender"),
|
Genre("Gender Bender", "gender-bender"),
|
||||||
|
Genre("Genius", "genius"),
|
||||||
Genre("Gore", "gore"),
|
Genre("Gore", "gore"),
|
||||||
Genre("Harem", "harem"),
|
Genre("Harem", "harem"),
|
||||||
|
Genre("Hero", "hero"),
|
||||||
Genre("Historical", "historical"),
|
Genre("Historical", "historical"),
|
||||||
Genre("Horror", "horror"),
|
Genre("Horror", "horror"),
|
||||||
Genre("Isekai", "isekai"),
|
Genre("Isekai", "isekai"),
|
||||||
|
@ -541,14 +542,17 @@ abstract class WPMangaStream(
|
||||||
Genre("Monster Girls", "monster-girls"),
|
Genre("Monster Girls", "monster-girls"),
|
||||||
Genre("Monsters", "monsters"),
|
Genre("Monsters", "monsters"),
|
||||||
Genre("Music", "music"),
|
Genre("Music", "music"),
|
||||||
|
Genre("Murim", "murim"),
|
||||||
Genre("Mystery", "mystery"),
|
Genre("Mystery", "mystery"),
|
||||||
Genre("One-shot", "one-shot"),
|
Genre("One-shot", "one-shot"),
|
||||||
Genre("Oneshot", "oneshot"),
|
Genre("Oneshot", "oneshot"),
|
||||||
|
Genre("Overpowered", "overpowered"),
|
||||||
Genre("Police", "police"),
|
Genre("Police", "police"),
|
||||||
Genre("Pshycological", "pshycological"),
|
Genre("Pshycological", "pshycological"),
|
||||||
Genre("Psychological", "psychological"),
|
Genre("Psychological", "psychological"),
|
||||||
Genre("Reincarnation", "reincarnation"),
|
Genre("Reincarnation", "reincarnation"),
|
||||||
Genre("Reverse Harem", "reverse-harem"),
|
Genre("Reverse Harem", "reverse-harem"),
|
||||||
|
Genre("Return", "return"),
|
||||||
Genre("Romancce", "romancce"),
|
Genre("Romancce", "romancce"),
|
||||||
Genre("Romance", "romance"),
|
Genre("Romance", "romance"),
|
||||||
Genre("Samurai", "samurai"),
|
Genre("Samurai", "samurai"),
|
||||||
|
@ -568,6 +572,7 @@ abstract class WPMangaStream(
|
||||||
Genre("Time Travel", "time-travel"),
|
Genre("Time Travel", "time-travel"),
|
||||||
Genre("Tragedy", "tragedy"),
|
Genre("Tragedy", "tragedy"),
|
||||||
Genre("Vampire", "vampire"),
|
Genre("Vampire", "vampire"),
|
||||||
|
Genre("Villain", "villain"),
|
||||||
Genre("Webtoon", "webtoon"),
|
Genre("Webtoon", "webtoon"),
|
||||||
Genre("Webtoons", "webtoons"),
|
Genre("Webtoons", "webtoons"),
|
||||||
Genre("Yaoi", "yaoi"),
|
Genre("Yaoi", "yaoi"),
|
||||||
|
|
|
@ -10,7 +10,7 @@ class WPMangaStreamGenerator : ThemeSourceGenerator {
|
||||||
|
|
||||||
override val themeClass = "WPMangaStream"
|
override val themeClass = "WPMangaStream"
|
||||||
|
|
||||||
override val baseVersionCode: Int = 13
|
override val baseVersionCode: Int = 14
|
||||||
|
|
||||||
override val sources = listOf(
|
override val sources = listOf(
|
||||||
MultiLang("Asura Scans", "https://www.asurascans.com", listOf("en", "tr"), className = "AsuraScansFactory", pkgName = "asurascans", overrideVersionCode = 12),
|
MultiLang("Asura Scans", "https://www.asurascans.com", listOf("en", "tr"), className = "AsuraScansFactory", pkgName = "asurascans", overrideVersionCode = 12),
|
||||||
|
|
Loading…
Reference in New Issue