From 0b3e69ec69b80f54c17bcb1aeb0988adf910af83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=A9fir=20Destiny?= Date: Sat, 4 Apr 2020 16:10:41 +0200 Subject: [PATCH] Incorrect parsing of HTML entities in manga author and artists on Mangadex (#2588) * Incorrect parsing of HTML entities in manga author and artists ; Fixes #1020 * Update version for #1020 --- src/all/mangadex/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/all/mangadex/build.gradle b/src/all/mangadex/build.gradle index 5b6145b63..def72e613 100644 --- a/src/all/mangadex/build.gradle +++ b/src/all/mangadex/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: MangaDex' pkgNameSuffix = 'all.mangadex' extClass = '.MangadexFactory' - extVersionCode = 86 + extVersionCode = 87 libVersion = '1.2' } diff --git a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt index 88c9f3dfa..b883bab1c 100644 --- a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt +++ b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt @@ -390,8 +390,8 @@ abstract class Mangadex( manga.title = cleanString(mangaJson.get("title").string) manga.thumbnail_url = cdnUrl + mangaJson.get("cover_url").string manga.description = cleanString(mangadexDescription.clean(internalLang, mangaJson.get("description").string)) - manga.author = mangaJson.get("author").string - manga.artist = mangaJson.get("artist").string + manga.author = cleanString(mangaJson.get("author").string) + manga.artist = cleanString(mangaJson.get("artist").string) val status = mangaJson.get("status").int val finalChapterNumber = getFinalChapter(mangaJson) if ((status == 2 || status == 3) && chapterJson != null && isMangaCompleted(chapterJson, finalChapterNumber)) {