mirror of
https://github.com/derrod/legendary.git
synced 2025-07-07 11:10:33 +00:00
[downloader] Fix skipping unneeded chunks
This was erroneously removed in daeee2e
This commit is contained in:
parent
e710bb893f
commit
bece6ef5de
|
@ -291,7 +291,10 @@ class DLManager(Process):
|
||||||
# runtime cache requirement by simulating adding/removing from cache during download.
|
# runtime cache requirement by simulating adding/removing from cache during download.
|
||||||
self.log.debug('Creating filetasks and chunktasks...')
|
self.log.debug('Creating filetasks and chunktasks...')
|
||||||
for current_file in fmlist:
|
for current_file in fmlist:
|
||||||
if not current_file.chunk_parts:
|
# skip unchanged and empty files
|
||||||
|
if current_file.filename in mc.unchanged:
|
||||||
|
continue
|
||||||
|
elif not current_file.chunk_parts:
|
||||||
self.tasks.append(FileTask(current_file.filename, empty=True))
|
self.tasks.append(FileTask(current_file.filename, empty=True))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue