From 5a5e11502c2eb59d1da0ebbaa6bbfd349a0089dc Mon Sep 17 00:00:00 2001 From: Carlos Date: Fri, 25 May 2018 08:01:33 -0400 Subject: [PATCH] mangadex fix double issue when blank (#331) --- src/all/mangadex/build.gradle | 4 ++-- .../eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/all/mangadex/build.gradle b/src/all/mangadex/build.gradle index 16f1cc464..00c64a500 100644 --- a/src/all/mangadex/build.gradle +++ b/src/all/mangadex/build.gradle @@ -5,8 +5,8 @@ ext { appName = 'Tachiyomi: MangaDex' pkgNameSuffix = "all.mangadex" extClass = '.MangadexFactory' - extVersionCode = 23 - extVersionSuffix = 23 + extVersionCode = 24 + extVersionSuffix = 24 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 60c08b542..dbbba50a7 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 @@ -296,7 +296,7 @@ open class Mangadex(override val lang: String, private val internalLang: String, chapterName.add("-") chapterName.add(chapterJson.get("title").string) } - if (finalChapterNumber != 0.00 && chapterJson.get("chapter").double == finalChapterNumber) { + if (finalChapterNumber != 0.00 && chapterJson.get("chapter").string.isNotEmpty() && chapterJson.get("chapter").double == finalChapterNumber) { chapterName.add(" [END]") }