From 08b615dca8714fe61f9b0d7dc0fc389d0098eaae Mon Sep 17 00:00:00 2001 From: Davide <49226282+pizidavi@users.noreply.github.com> Date: Mon, 2 Jan 2023 13:59:01 +0100 Subject: [PATCH] MangaThemesia: Added Hiatus status (#14757) --- .../eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesia.kt | 1 + .../tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesia.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesia.kt index 58c4a156b..53b972d9c 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesia.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesia.kt @@ -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 } diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt index 0fd29b8e9..0ebc5cb94 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt @@ -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),