We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbf726c commit 5e091ecCopy full SHA for 5e091ec
server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Chapter.kt
@@ -370,7 +370,7 @@ object Chapter {
370
val actualNewChapters = newChapters.subtract(reUploadedChapters.toSet()).toList()
371
val chaptersToConsiderForDownloadLimit =
372
if (serverConfig.autoDownloadIgnoreReUploads.value) {
373
- actualNewChapters.removeDuplicates(actualNewChapters[0])
+ if (actualNewChapters.isNotEmpty()) actualNewChapters.removeDuplicates(actualNewChapters[0]) else emptyList()
374
} else {
375
newChapters.removeDuplicates(newChapters[0])
376
}.sortedBy { it.index }
0 commit comments