MangaThemesia: Added Hiatus status (#14757)

This commit is contained in:
Davide 2023-01-02 13:59:01 +01:00 committed by GitHub
parent ed40ed5d9c
commit 08b615dca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -189,6 +189,7 @@ abstract class MangaThemesia(
open fun String?.parseStatus(): Int = when {
this == null -> SManga.UNKNOWN
listOf("ongoing", "publishing").any { this.contains(it, ignoreCase = true) } -> SManga.ONGOING
this.contains("hiatus", ignoreCase = true) -> SManga.ON_HIATUS
this.contains("completed", ignoreCase = true) -> SManga.COMPLETED
else -> SManga.UNKNOWN
}

View File

@ -11,7 +11,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
override val themeClass = "MangaThemesia"
override val baseVersionCode: Int = 21
override val baseVersionCode: Int = 22
override val sources = listOf(
MultiLang("Asura Scans", "https://asura.gg", listOf("en", "tr"), className = "AsuraScansFactory", pkgName = "asurascans", overrideVersionCode = 17),