MangAdventure: support more series statuses (#16017)
This commit is contained in:
parent
6706a6cf2b
commit
9f68bdf964
|
@ -155,10 +155,12 @@ abstract class MangAdventure(
|
||||||
status = if (series.licensed == true) {
|
status = if (series.licensed == true) {
|
||||||
SManga.LICENSED
|
SManga.LICENSED
|
||||||
} else {
|
} else {
|
||||||
when (series.completed) {
|
when (series.status) {
|
||||||
true -> SManga.COMPLETED
|
"completed" -> SManga.COMPLETED
|
||||||
false -> SManga.ONGOING
|
"ongoing" -> SManga.ONGOING
|
||||||
null -> SManga.UNKNOWN
|
"hiatus" -> SManga.ON_HIATUS
|
||||||
|
"canceled" -> SManga.CANCELLED
|
||||||
|
else -> SManga.UNKNOWN
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,7 @@ internal data class Series(
|
||||||
val title: String,
|
val title: String,
|
||||||
val cover: String,
|
val cover: String,
|
||||||
val description: String? = null,
|
val description: String? = null,
|
||||||
val completed: Boolean? = null,
|
val status: String? = null,
|
||||||
val licensed: Boolean? = null,
|
val licensed: Boolean? = null,
|
||||||
val aliases: List<String>? = null,
|
val aliases: List<String>? = null,
|
||||||
val authors: List<String>? = null,
|
val authors: List<String>? = null,
|
||||||
|
|
|
@ -9,7 +9,7 @@ class MangAdventureGenerator : ThemeSourceGenerator {
|
||||||
|
|
||||||
override val themeClass = "MangAdventure"
|
override val themeClass = "MangAdventure"
|
||||||
|
|
||||||
override val baseVersionCode = 11
|
override val baseVersionCode = 12
|
||||||
|
|
||||||
override val sources = listOf(
|
override val sources = listOf(
|
||||||
SingleLang("Arc-Relight", "https://arc-relight.com", "en", className = "ArcRelight"),
|
SingleLang("Arc-Relight", "https://arc-relight.com", "en", className = "ArcRelight"),
|
||||||
|
|
Loading…
Reference in New Issue