Skip to content

A feature-rich command-line audio/video downloader

[YoutubeDL] Check if merger can actually merge

Sergey M․97fcf1bbd07a
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 7c3bdb9646..00f86b342d 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -1088,7 +1088,7 @@ class YoutubeDL(object):
if (self.params.get('outtmpl', DEFAULT_OUTTMPL) != '-'
and info_dict['extractor'] in ['youtube', 'ted']):
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('best')
req_format = '/'.join(req_format_list)