[MimiHentai] Remove state

master
dragonx943 11 months ago
parent faf8f6ffd7
commit d2a026c054
No known key found for this signature in database
GPG Key ID: 903893883B4D575E

@ -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 { val authors = jo.optJSONArray("authors")?.mapJSON {
it.getString("name") it.getString("name")
}?.toSet() ?: emptySet() }?.toSet() ?: emptySet()
@ -168,8 +162,9 @@ internal class MimiHentai(context: MangaLoaderContext) :
rating = RATING_UNKNOWN, rating = RATING_UNKNOWN,
contentRating = ContentRating.ADULT, contentRating = ContentRating.ADULT,
coverUrl = jo.getString("coverUrl"), coverUrl = jo.getString("coverUrl"),
state = null,
description = description,
tags = tags, tags = tags,
state = state,
authors = authors, authors = authors,
source = source, 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 { val authors = jo.getJSONArray("authors").mapJSON {
it.getString("name") it.getString("name")
}.toSet() }.toSet()
@ -219,8 +208,9 @@ internal class MimiHentai(context: MangaLoaderContext) :
rating = RATING_UNKNOWN, rating = RATING_UNKNOWN,
contentRating = ContentRating.ADULT, contentRating = ContentRating.ADULT,
coverUrl = jo.getString("coverUrl"), coverUrl = jo.getString("coverUrl"),
state = null,
tags = tags, tags = tags,
state = state, description = description,
authors = authors, authors = authors,
source = source, source = source,
) )

Loading…
Cancel
Save