Skip to content

A feature-rich command-line audio/video downloader

[MoveFiles] Fix when merger can't run

pukkandan42bb0c59f8ff
diff --git a/youtube_dlc/YoutubeDL.py b/youtube_dlc/YoutubeDL.py
index 67afeac01a..f88bc793ef 100644
--- a/youtube_dlc/YoutubeDL.py
+++ b/youtube_dlc/YoutubeDL.py
@@ -2360,6 +2360,9 @@ class YoutubeDL(object):
info_dict['__files_to_merge'] = downloaded
# Even if there were no downloads, it is being merged only now
info_dict['__real_download'] = True
+ else:
+ for file in downloaded:
+ files_to_move[file] = None
else:
# Just a single file
dl_filename = existing_file(full_filename, temp_filename)