From d2a026c0541058689265d0f805939b9bb68e3578 Mon Sep 17 00:00:00 2001 From: dragonx943 Date: Thu, 5 Jun 2025 08:41:55 +0000 Subject: [PATCH] [MimiHentai] Remove state --- .../kotatsu/parsers/site/vi/MimiHentai.kt | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/vi/MimiHentai.kt b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/vi/MimiHentai.kt index 22d5051e..d1503684 100644 --- a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/vi/MimiHentai.kt +++ b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/vi/MimiHentai.kt @@ -141,12 +141,6 @@ internal class MimiHentai(context: MangaLoaderContext) : } } - val state = when (description) { - "Đang Tiến Hành" -> MangaState.ONGOING - "Hoàn Thành" -> MangaState.FINISHED - else -> null - } - val authors = jo.optJSONArray("authors")?.mapJSON { it.getString("name") }?.toSet() ?: emptySet() @@ -168,8 +162,9 @@ internal class MimiHentai(context: MangaLoaderContext) : rating = RATING_UNKNOWN, contentRating = ContentRating.ADULT, coverUrl = jo.getString("coverUrl"), + state = null, + description = description, tags = tags, - state = state, authors = authors, source = source, ) @@ -192,12 +187,6 @@ internal class MimiHentai(context: MangaLoaderContext) : } } - val state = when (description) { - "Đang Tiến Hành" -> MangaState.ONGOING - "Hoàn Thành" -> MangaState.FINISHED - else -> null - } - val authors = jo.getJSONArray("authors").mapJSON { it.getString("name") }.toSet() @@ -219,8 +208,9 @@ internal class MimiHentai(context: MangaLoaderContext) : rating = RATING_UNKNOWN, contentRating = ContentRating.ADULT, coverUrl = jo.getString("coverUrl"), + state = null, tags = tags, - state = state, + description = description, authors = authors, source = source, )