From b7ab043af4c077f0ef476bae30cb01f3343f36e3 Mon Sep 17 00:00:00 2001 From: Carlos Date: Tue, 13 Mar 2018 10:57:27 -0400 Subject: [PATCH] mangadex fixed future chapters showing (#255) --- src/all/mangadex/build.gradle | 4 ++-- .../eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/all/mangadex/build.gradle b/src/all/mangadex/build.gradle index cd0969d49..47d1f288c 100644 --- a/src/all/mangadex/build.gradle +++ b/src/all/mangadex/build.gradle @@ -5,8 +5,8 @@ ext { appName = 'Tachiyomi: MangaDex' pkgNameSuffix = "all.mangadex" extClass = '.MangadexFactory' - extVersionCode = 16 - extVersionSuffix = 16 + extVersionCode = 17 + extVersionSuffix = 17 libVersion = '1.2' } diff --git a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt index 6d9deeb97..c153e9806 100644 --- a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt +++ b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt @@ -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)) }