Rizz Fables: Update status mapping (#8571)

* MangaThemesia: More status mapping

* Include more Status mapping

* fix error

* Typo

* consistent
This commit is contained in:
Prem Kumar 2025-04-24 22:41:33 +05:30 committed by Draff
parent b1ef508489
commit 7c7ce285cd
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 16 additions and 1 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.RizzComic'
themePkg = 'mangathemesia'
baseUrl = 'https://rizzfables.com'
overrideVersionCode = 10
overrideVersionCode = 11
isNsfw = false
}

View File

@ -121,6 +121,21 @@ class RizzComic : MangaThemesiaAlt(
}
}
override fun String?.parseStatus(): Int = when {
this == null -> SManga.UNKNOWN
listOf("ongoing", "new season", "mass released")
.any { this.contains(it, ignoreCase = true) } -> SManga.ONGOING
listOf("completed")
.any { this.contains(it, ignoreCase = true) } -> SManga.COMPLETED
listOf("dropped")
.any { this.contains(it, ignoreCase = true) } -> SManga.CANCELLED
listOf("hiatus", "season end")
.any { this.contains(it, ignoreCase = true) } -> SManga.ON_HIATUS
else -> SManga.UNKNOWN
}
override fun searchMangaParse(response: Response): MangasPage {
val result = response.parseAs<List<Comic>>()