|
@@ -18,6 +18,7 @@ import eu.kanade.tachiyomi.data.database.models.LibraryManga
|
|
import eu.kanade.tachiyomi.data.database.models.Manga
|
|
import eu.kanade.tachiyomi.data.database.models.Manga
|
|
import eu.kanade.tachiyomi.data.download.DownloadManager
|
|
import eu.kanade.tachiyomi.data.download.DownloadManager
|
|
import eu.kanade.tachiyomi.data.download.DownloadService
|
|
import eu.kanade.tachiyomi.data.download.DownloadService
|
|
|
|
+import eu.kanade.tachiyomi.data.library.LibraryUpdateRanker.rankingScheme
|
|
import eu.kanade.tachiyomi.data.library.LibraryUpdateService.Companion.start
|
|
import eu.kanade.tachiyomi.data.library.LibraryUpdateService.Companion.start
|
|
import eu.kanade.tachiyomi.data.notification.NotificationReceiver
|
|
import eu.kanade.tachiyomi.data.notification.NotificationReceiver
|
|
import eu.kanade.tachiyomi.data.notification.Notifications
|
|
import eu.kanade.tachiyomi.data.notification.Notifications
|
|
@@ -204,7 +205,9 @@ class LibraryUpdateService(
|
|
// Update favorite manga. Destroy service when completed or in case of an error.
|
|
// Update favorite manga. Destroy service when completed or in case of an error.
|
|
subscription = Observable
|
|
subscription = Observable
|
|
.defer {
|
|
.defer {
|
|
|
|
+ val selectedScheme = preferences.libraryUpdatePrioritization().getOrDefault()
|
|
val mangaList = getMangaToUpdate(intent, target)
|
|
val mangaList = getMangaToUpdate(intent, target)
|
|
|
|
+ .sortedWith(rankingScheme[selectedScheme])
|
|
|
|
|
|
// Update either chapter list or manga details.
|
|
// Update either chapter list or manga details.
|
|
when (target) {
|
|
when (target) {
|