aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2021-02-09 00:16:59 +0530
committerpukkandan <pukkandan@gmail.com>2021-02-09 00:27:39 +0530
commitefabc161652d2427c2fe5ccff6c944e91ea12ca0 (patch)
treec8fce0d428f88ae85d60d764dc70fb8fd0d38825
parent5219cb3e7567143ea704d299ebe6e7135341ebc1 (diff)
downloadhypervideo-pre-efabc161652d2427c2fe5ccff6c944e91ea12ca0.tar.lz
hypervideo-pre-efabc161652d2427c2fe5ccff6c944e91ea12ca0.tar.xz
hypervideo-pre-efabc161652d2427c2fe5ccff6c944e91ea12ca0.zip
[postprocessor] Fix bug (Closes #62)
introduced by: 1bf540d28b9a53112532aefde12188db5b327891 :ci skip dl
-rw-r--r--youtube_dlc/YoutubeDL.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/youtube_dlc/YoutubeDL.py b/youtube_dlc/YoutubeDL.py
index 92ca687a8..1bbc0a212 100644
--- a/youtube_dlc/YoutubeDL.py
+++ b/youtube_dlc/YoutubeDL.py
@@ -2292,12 +2292,9 @@ class YoutubeDL(object):
downloaded = []
merger = FFmpegMergerPP(self)
if not merger.available:
- postprocessors = []
self.report_warning('You have requested multiple '
'formats but ffmpeg is not installed.'
' The formats won\'t be merged.')
- else:
- postprocessors = [merger]
def compatible_formats(formats):
# TODO: some formats actually allow this (mkv, webm, ogg, mp4), but not all of them.
@@ -2349,7 +2346,8 @@ class YoutubeDL(object):
downloaded.append(fname)
partial_success, real_download = dl(fname, new_info)
success = success and partial_success
- info_dict['__postprocessors'].append(postprocessors)
+ if merger.available:
+ info_dict['__postprocessors'].append(merger)
info_dict['__files_to_merge'] = downloaded
# Even if there were no downloads, it is being merged only now
info_dict['__real_download'] = True