From 300b61ecd44656a67bd5a796fc4fcfda73fd7f0a Mon Sep 17 00:00:00 2001 From: zbue <108109611+zbue@users.noreply.github.com> Date: Sun, 26 Jun 2022 22:16:43 +0800 Subject: [PATCH] Nepnep: Parse new statuses (#12328) * Nepnep: Parse new statuses * bump version --- .../src/main/java/eu/kanade/tachiyomi/multisrc/nepnep/NepNep.kt | 2 ++ .../java/eu/kanade/tachiyomi/multisrc/nepnep/NepNepGenerator.kt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/nepnep/NepNep.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/nepnep/NepNep.kt index 6e123b88a..d01749c97 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/nepnep/NepNep.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/nepnep/NepNep.kt @@ -246,6 +246,8 @@ abstract class NepNep( private fun String.toStatus() = when { this.contains("Ongoing", ignoreCase = true) -> SManga.ONGOING this.contains("Complete", ignoreCase = true) -> SManga.COMPLETED + this.contains("Cancelled", ignoreCase = true) -> SManga.CANCELLED + this.contains("Hiatus", ignoreCase = true) -> SManga.ON_HIATUS else -> SManga.UNKNOWN } diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/nepnep/NepNepGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/nepnep/NepNepGenerator.kt index 8844875ed..a8a29aab3 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/nepnep/NepNepGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/nepnep/NepNepGenerator.kt @@ -9,7 +9,7 @@ class NepNepGenerator : ThemeSourceGenerator { override val themeClass = "NepNep" - override val baseVersionCode: Int = 8 + override val baseVersionCode: Int = 9 override val sources = listOf( SingleLang("MangaSee", "https://mangasee123.com", "en", overrideVersionCode = 20),