mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 15:16:52 +01:00
[postprocessor] Fix bug (Closes #62)
introduced by: 1bf540d28b
:ci skip dl
This commit is contained in:
parent
5219cb3e75
commit
efabc16165
@ -2292,12 +2292,9 @@ def existing_file(*filepaths):
|
|||||||
downloaded = []
|
downloaded = []
|
||||||
merger = FFmpegMergerPP(self)
|
merger = FFmpegMergerPP(self)
|
||||||
if not merger.available:
|
if not merger.available:
|
||||||
postprocessors = []
|
|
||||||
self.report_warning('You have requested multiple '
|
self.report_warning('You have requested multiple '
|
||||||
'formats but ffmpeg is not installed.'
|
'formats but ffmpeg is not installed.'
|
||||||
' The formats won\'t be merged.')
|
' The formats won\'t be merged.')
|
||||||
else:
|
|
||||||
postprocessors = [merger]
|
|
||||||
|
|
||||||
def compatible_formats(formats):
|
def compatible_formats(formats):
|
||||||
# TODO: some formats actually allow this (mkv, webm, ogg, mp4), but not all of them.
|
# TODO: some formats actually allow this (mkv, webm, ogg, mp4), but not all of them.
|
||||||
@ -2349,7 +2346,8 @@ def correct_ext(filename):
|
|||||||
downloaded.append(fname)
|
downloaded.append(fname)
|
||||||
partial_success, real_download = dl(fname, new_info)
|
partial_success, real_download = dl(fname, new_info)
|
||||||
success = success and partial_success
|
success = success and partial_success
|
||||||
info_dict['__postprocessors'].append(postprocessors)
|
if merger.available:
|
||||||
|
info_dict['__postprocessors'].append(merger)
|
||||||
info_dict['__files_to_merge'] = downloaded
|
info_dict['__files_to_merge'] = downloaded
|
||||||
# Even if there were no downloads, it is being merged only now
|
# Even if there were no downloads, it is being merged only now
|
||||||
info_dict['__real_download'] = True
|
info_dict['__real_download'] = True
|
||||||
|
Loading…
Reference in New Issue
Block a user