[MangaDex] Fix error on empty description

pull/94/head
Koitharu 4 years ago
parent de0c12c078
commit e8b801684f
No known key found for this signature in database
GPG Key ID: 8E861F8CE6E7CE27

@ -139,7 +139,7 @@ internal class MangaDexParser(override val context: MangaLoaderContext) : MangaP
Locale.ROOT,
)
manga.copy(
description = mangaAttrs.getJSONObject("description").selectByLocale()
description = mangaAttrs.optJSONObject("description")?.selectByLocale()
?: manga.description,
chapters = feed.mapChapters { _, jo ->
val id = jo.getString("id")

Loading…
Cancel
Save