support Oneshot for mangadex (#581)

* support Oneshot for mangadex
This commit is contained in:
Carlos 2018-10-21 17:01:06 -04:00 committed by GitHub
parent 1a6db905cc
commit eb6eaf28ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: MangaDex'
pkgNameSuffix = 'all.mangadex'
extClass = '.MangadexFactory'
extVersionCode = 40
extVersionCode = 41
libVersion = '1.2'
}

View File

@ -338,6 +338,10 @@ open class Mangadex(override val lang: String, private val internalLang: String,
}
chapterName.add(chapterJson.get("title").string)
}
//if volume, chapter and title is empty its a oneshot
if(chapterName.isEmpty()){
chapterName.add("Oneshot")
}
if ((status == 2 || status == 3) && doesFinalChapterExist(finalChapterNumber, chapterJson)) {
chapterName.add("[END]")
}