fix mangadex end chapter (#5456)

end chapter doesnt add "[END]" to chapter name
This commit is contained in:
Riztard Lanthorn 2021-01-16 23:48:35 +07:00 committed by GitHub
parent 26e30005a8
commit 812170038e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'MangaDex'
pkgNameSuffix = 'all.mangadex'
extClass = '.MangaDexFactory'
extVersionCode = 100
extVersionCode = 101
libVersion = '1.2'
containsNsfw = true
}

View File

@ -495,7 +495,7 @@ abstract class MangaDex(
}
private fun getFinalChapter(jsonObj: JsonObject): String =
jsonObj.get("last_chapter").nullString?.trim() ?: ""
jsonObj.get("lastChapter").nullString?.trim() ?: ""
private fun isOneshot(chapterJson: JsonArray, lastChapter: String): Boolean {
val chapter =