mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-30 01:04:55 -05:00
kitsu search fix (#1681)
This commit is contained in:
parent
3186661420
commit
8b67255186
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ class KitsuSearchManga(obj: JsonObject) {
|
||||||
private val canonicalTitle by obj.byString
|
private val canonicalTitle by obj.byString
|
||||||
private val chapterCount = obj.get("chapterCount").nullInt
|
private val chapterCount = obj.get("chapterCount").nullInt
|
||||||
val subType = obj.get("subtype").nullString
|
val subType = obj.get("subtype").nullString
|
||||||
val original by obj["posterImage"].byString
|
val original = obj.get("posterImage").nullObj?.get("original")?.asString
|
||||||
private val synopsis by obj.byString
|
private val synopsis by obj.byString
|
||||||
private var startDate = obj.get("startDate").nullString?.let {
|
private var startDate = obj.get("startDate").nullString?.let {
|
||||||
val outputDf = SimpleDateFormat("yyyy-MM-dd", Locale.US)
|
val outputDf = SimpleDateFormat("yyyy-MM-dd", Locale.US)
|
||||||
|
@ -28,7 +28,7 @@ class KitsuSearchManga(obj: JsonObject) {
|
||||||
media_id = this@KitsuSearchManga.id
|
media_id = this@KitsuSearchManga.id
|
||||||
title = canonicalTitle
|
title = canonicalTitle
|
||||||
total_chapters = chapterCount ?: 0
|
total_chapters = chapterCount ?: 0
|
||||||
cover_url = original
|
cover_url = original ?: ""
|
||||||
summary = synopsis
|
summary = synopsis
|
||||||
tracking_url = KitsuApi.mangaUrl(media_id)
|
tracking_url = KitsuApi.mangaUrl(media_id)
|
||||||
if (endDate == null) {
|
if (endDate == null) {
|
||||||
|
|
Loading…
Reference in a new issue