From a22c79c58a499b50670ee4d5773a9db23b73a63c Mon Sep 17 00:00:00 2001 From: arkon Date: Wed, 22 Jan 2020 18:28:33 -0500 Subject: [PATCH] Tweak manga last updated time based on chapter upload instead of fetch time --- .../main/java/eu/kanade/tachiyomi/util/ChapterSourceSync.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/ChapterSourceSync.kt b/app/src/main/java/eu/kanade/tachiyomi/util/ChapterSourceSync.kt index c237110fd..5b4149ea8 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/ChapterSourceSync.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/ChapterSourceSync.kt @@ -128,9 +128,9 @@ fun syncChaptersWithSource(db: DatabaseHelper, // Fix order in source. db.fixChaptersSourceOrder(sourceChapters).executeAsBlocking() - // Set manga's last update time to latest chapter's fetch time if possible - val newestChapter = db.getChapters(manga).executeAsBlocking().maxBy { it.date_fetch } - manga.last_update = newestChapter?.date_fetch ?: manga.last_update + // Set manga's last update time to latest chapter's upload time if possible + val newestChapter = db.getChapters(manga).executeAsBlocking().maxBy { it.date_upload } + manga.last_update = newestChapter?.date_upload ?: manga.last_update db.updateLastUpdated(manga).executeAsBlocking() }