mangadex fix double issue when blank (#331)

This commit is contained in:
Carlos 2018-05-25 08:01:33 -04:00 committed by GitHub
parent ff8bb51c4a
commit 5a5e11502c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -5,8 +5,8 @@ ext {
appName = 'Tachiyomi: MangaDex' appName = 'Tachiyomi: MangaDex'
pkgNameSuffix = "all.mangadex" pkgNameSuffix = "all.mangadex"
extClass = '.MangadexFactory' extClass = '.MangadexFactory'
extVersionCode = 23 extVersionCode = 24
extVersionSuffix = 23 extVersionSuffix = 24
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -296,7 +296,7 @@ open class Mangadex(override val lang: String, private val internalLang: String,
chapterName.add("-") chapterName.add("-")
chapterName.add(chapterJson.get("title").string) 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]") chapterName.add(" [END]")
} }