mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 03:01:49 +01:00
Tweak manga last updated time based on chapter upload instead of fetch time
This commit is contained in:
parent
b642e019e8
commit
a22c79c58a
@ -128,9 +128,9 @@ fun syncChaptersWithSource(db: DatabaseHelper,
|
|||||||
// Fix order in source.
|
// Fix order in source.
|
||||||
db.fixChaptersSourceOrder(sourceChapters).executeAsBlocking()
|
db.fixChaptersSourceOrder(sourceChapters).executeAsBlocking()
|
||||||
|
|
||||||
// Set manga's last update time to latest chapter's fetch time if possible
|
// Set manga's last update time to latest chapter's upload time if possible
|
||||||
val newestChapter = db.getChapters(manga).executeAsBlocking().maxBy { it.date_fetch }
|
val newestChapter = db.getChapters(manga).executeAsBlocking().maxBy { it.date_upload }
|
||||||
manga.last_update = newestChapter?.date_fetch ?: manga.last_update
|
manga.last_update = newestChapter?.date_upload ?: manga.last_update
|
||||||
db.updateLastUpdated(manga).executeAsBlocking()
|
db.updateLastUpdated(manga).executeAsBlocking()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user