|
@@ -58,6 +58,8 @@ class KitsuLibManga(obj: JsonObject, manga: JsonObject) {
|
|
|
val original = manga["attributes"]!!.jsonObject["posterImage"]!!.jsonObject["original"]!!.jsonPrimitive.content
|
|
|
private val synopsis = manga["attributes"]!!.jsonObject["synopsis"]!!.jsonPrimitive.content
|
|
|
private val startDate = manga["attributes"]!!.jsonObject["startDate"]?.jsonPrimitive?.contentOrNull.orEmpty()
|
|
|
+ private val startedAt = obj["attributes"]!!.jsonObject["startedAt"]?.jsonPrimitive?.contentOrNull
|
|
|
+ private val finishedAt = obj["attributes"]!!.jsonObject["finishedAt"]?.jsonPrimitive?.contentOrNull
|
|
|
private val libraryId = obj["id"]!!.jsonPrimitive.int
|
|
|
val status = obj["attributes"]!!.jsonObject["status"]!!.jsonPrimitive.content
|
|
|
private val ratingTwenty = obj["attributes"]!!.jsonObject["ratingTwenty"]?.jsonPrimitive?.contentOrNull
|
|
@@ -73,6 +75,8 @@ class KitsuLibManga(obj: JsonObject, manga: JsonObject) {
|
|
|
publishing_status = [email protected]
|
|
|
publishing_type = type
|
|
|
start_date = startDate
|
|
|
+ started_reading_date = KitsuDateHelper.parse(startedAt)
|
|
|
+ finished_reading_date = KitsuDateHelper.parse(finishedAt)
|
|
|
status = toTrackStatus()
|
|
|
score = ratingTwenty?.let { it.toInt() / 2f } ?: 0f
|
|
|
last_chapter_read = progress
|