mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 07:31:50 +01:00
Sort chapters properly for update notifactions
This commit is contained in:
parent
fb2ab7d765
commit
eddfeff146
@ -358,7 +358,7 @@ class LibraryUpdateService(
|
||||
val newChapters = syncChaptersWithSource(db, fetchedChapters, manga, source).first
|
||||
if (newChapters.isNotEmpty()) {
|
||||
if (downloadNew && (categoriesToDownload.isEmpty() || manga.category in categoriesToDownload)) {
|
||||
downloadChapters(manga, newChapters)
|
||||
downloadChapters(manga, newChapters.sortedBy { it.chapter_number })
|
||||
hasDownloads = true
|
||||
}
|
||||
newUpdates.add(manga to newChapters.toTypedArray())
|
||||
|
Loading…
Reference in New Issue
Block a user