Downloader conflict fixing

This commit is contained in:
Jobobby04 2020-07-24 23:19:57 -04:00
parent 589464d723
commit a38cb2ab5f

View File

@ -234,10 +234,8 @@ class Downloader(
val mangaDir = provider.findMangaDir(manga, source)
chapters
// Avoid downloading chapters with the same name.
.distinctBy { it.name }
// Filter out those already downloaded.
.filter { mangaDir?.findFile(provider.getChapterDirName(it)) == null }
.filter { provider.findChapterDir(it, manga, source) == null }
// Add chapters to queue from the start.
.sortedByDescending { it.source_order }
}