mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-02 01:02:48 +01:00
[YoutubeDL] Check if merger can actually merge
This commit is contained in:
parent
13763ce599
commit
97fcf1bbd0
@ -1088,7 +1088,7 @@ def process_video_result(self, info_dict, download=True):
|
|||||||
if (self.params.get('outtmpl', DEFAULT_OUTTMPL) != '-'
|
if (self.params.get('outtmpl', DEFAULT_OUTTMPL) != '-'
|
||||||
and info_dict['extractor'] in ['youtube', 'ted']):
|
and info_dict['extractor'] in ['youtube', 'ted']):
|
||||||
merger = FFmpegMergerPP(self)
|
merger = FFmpegMergerPP(self)
|
||||||
if merger.available and not merger.check_outdated():
|
if merger.available and merger.can_merge():
|
||||||
req_format_list.append('bestvideo+bestaudio')
|
req_format_list.append('bestvideo+bestaudio')
|
||||||
req_format_list.append('best')
|
req_format_list.append('best')
|
||||||
req_format = '/'.join(req_format_list)
|
req_format = '/'.join(req_format_list)
|
||||||
|
Loading…
Reference in New Issue
Block a user