mangadex fixed future chapters showing (#255)
This commit is contained in:
parent
644db5e0eb
commit
b7ab043af4
|
@ -5,8 +5,8 @@ ext {
|
|||
appName = 'Tachiyomi: MangaDex'
|
||||
pkgNameSuffix = "all.mangadex"
|
||||
extClass = '.MangadexFactory'
|
||||
extVersionCode = 16
|
||||
extVersionSuffix = 16
|
||||
extVersionCode = 17
|
||||
extVersionSuffix = 17
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue