Rizz Fables: Update status mapping (#8571)
* MangaThemesia: More status mapping * Include more Status mapping * fix error * Typo * consistent
This commit is contained in:
parent
b1ef508489
commit
7c7ce285cd
@ -3,7 +3,7 @@ ext {
|
|||||||
extClass = '.RizzComic'
|
extClass = '.RizzComic'
|
||||||
themePkg = 'mangathemesia'
|
themePkg = 'mangathemesia'
|
||||||
baseUrl = 'https://rizzfables.com'
|
baseUrl = 'https://rizzfables.com'
|
||||||
overrideVersionCode = 10
|
overrideVersionCode = 11
|
||||||
isNsfw = false
|
isNsfw = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 {
|
override fun searchMangaParse(response: Response): MangasPage {
|
||||||
val result = response.parseAs<List<Comic>>()
|
val result = response.parseAs<List<Comic>>()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user