mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
dont delete chapters in global update if the chapter number hasn't changed
(if the source doesnt have a scanlator it'll remain, for sources like dex etc it'll still delete it)
This commit is contained in:
parent
81fce93000
commit
a3bff454fb
1 changed files with 4 additions and 1 deletions
|
@ -433,7 +433,10 @@ class LibraryUpdateService(
|
|||
}
|
||||
if (deleteRemoved && newChapters.second.isNotEmpty()) {
|
||||
val removedChapters = newChapters.second.filter {
|
||||
downloadManager.isChapterDownloaded(it, manga)
|
||||
downloadManager.isChapterDownloaded(it, manga) &&
|
||||
newChapters.first.none { newChapter ->
|
||||
newChapter.chapter_number == it.chapter_number && it.scanlator.isNullOrBlank()
|
||||
}
|
||||
}
|
||||
if (removedChapters.isNotEmpty()) {
|
||||
downloadManager.deleteChapters(removedChapters, manga, source)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue