Fix broken JSON parsing in YM (#18713)

Fix broken JSON parsing in YM.
This commit is contained in:
Alessandro Jean 2023-10-25 16:04:57 -03:00 committed by GitHub
parent 3d74da2c0d
commit 5b79fd2229
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Yomu Mangás'
pkgNameSuffix = 'pt.yomumangas'
extClass = '.YomuMangas'
extVersionCode = 2
extVersionCode = 3
isNsfw = true
}

View File

@ -32,7 +32,7 @@ data class YomuMangasSeriesDto(
val id: Int,
val slug: String,
val title: String,
val cover: String,
val cover: String? = null,
val status: String,
val authors: List<String>? = emptyList(),
val artists: List<String>? = emptyList(),
@ -56,7 +56,7 @@ data class YomuMangasSeriesDto(
"TRANSLATING" -> SManga.PUBLISHING_FINISHED
else -> SManga.UNKNOWN
}
thumbnail_url = "${YomuMangas.CDN_URL}/$cover"
thumbnail_url = cover?.let { "${YomuMangas.CDN_URL}/$it" }
url = "/manga/$id/$slug"
}
}
@ -84,7 +84,7 @@ data class YomuMangasChapterDto(
companion object {
private val DATE_FORMATTER by lazy {
SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ", Locale.US)
SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US)
}
}
}