Преглед на файлове

Tweak manga last updated time based on chapter upload instead of fetch time

arkon преди 5 години
родител
ревизия
a22c79c58a
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      app/src/main/java/eu/kanade/tachiyomi/util/ChapterSourceSync.kt

+ 3 - 3
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()
     }