mirror of
https://github.com/mihonapp/mihon.git
synced 2026-11-03 13:35:45 -08:00
Update the sources with the most entries first in library updates
(cherry picked from commit b8070cdc9c)
This commit is contained in:
@@ -15,6 +15,9 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co
|
||||
### Added
|
||||
- Add a Time Format setting to customize how times are displayed ([@MajorTanya](https://github.com/MajorTanya)) ([#4118](https://github.com/mihonapp/mihon/pull/4118))
|
||||
|
||||
### Changed
|
||||
- Update the sources with the most entries first during library updates ([@AntsyLich](https://github.com/AntsyLich))
|
||||
|
||||
### Improved
|
||||
- Create and restore backups faster and with less memory ([@NGB-Was-Taken](https://github.com/NGB-Was-Taken), [@AntsyLich](https://github.com/AntsyLich))
|
||||
|
||||
|
||||
@@ -260,6 +260,7 @@ class LibraryUpdateWorker(private val context: Context, workerParams: WorkerPara
|
||||
|
||||
coroutineScope {
|
||||
mangaToUpdate.groupBy { it.manga.source }.values
|
||||
.sortedByDescending { it.size }
|
||||
.map { mangaInSource ->
|
||||
async {
|
||||
semaphore.withPermit {
|
||||
|
||||
Reference in New Issue
Block a user