mangadex fixed future chapters showing (#255)

This commit is contained in:
Carlos 2018-03-13 10:57:27 -04:00 committed by GitHub
parent 644db5e0eb
commit b7ab043af4
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'
pkgNameSuffix = "all.mangadex"
extClass = '.MangadexFactory'
extVersionCode = 16
extVersionSuffix = 16
extVersionCode = 17
extVersionSuffix = 17
libVersion = '1.2'
}

View File

@ -232,7 +232,7 @@ open class Mangadex(override val lang: String, private val internalLang: String,
//skip chapters that dont match the desired language, or are future releases
chapterJson?.forEach { key, jsonElement ->
val chapterElement = jsonElement.asJsonObject
if (chapterElement.get("lang_code").string == internalLang && chapterElement.get("timestamp").asLong <= now) {
if (chapterElement.get("lang_code").string == internalLang && (chapterElement.get("timestamp").asLong * 1000) <= now) {
chapterElement.toString()
chapters.add(chapterFromJson(key, chapterElement))
}