A feature-rich command-line audio/video downloader
[download/external] move the check for multiple selected formats to get_suitable_downloader
remitamine6ae27bed0111
diff --git a/youtube_dl/downloader/__init__.py b/youtube_dl/downloader/__init__.pyindex 19471a2507..73b34fdae9 100644--- a/youtube_dl/downloader/__init__.py+++ b/youtube_dl/downloader/__init__.py@@ -32,7 +32,7 @@ def get_suitable_downloader(info_dict, params={}):protocol = determine_protocol(info_dict)info_dict['protocol'] = protocol- # if (info_dict.get('start_time') or info_dict.get('end_time')) and FFmpegFD.can_download(info_dict):+ # if (info_dict.get('start_time') or info_dict.get('end_time')) and not info_dict.get('requested_formats') and FFmpegFD.can_download(info_dict):# return FFmpegFDexternal_downloader = params.get('external_downloader')diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.pyindex fe2a0198c2..85cf834c7d 100644--- a/youtube_dl/downloader/external.py+++ b/youtube_dl/downloader/external.py@@ -166,7 +166,7 @@ class HttpieFD(ExternalFD):class FFmpegFD(ExternalFD):@classmethoddef supports(cls, info_dict):- return info_dict['protocol'] in ('http', 'https', 'ftp', 'ftps', 'm3u8', 'rtsp', 'rtmp', 'mms') and not info_dict.get('requested_formats')+ return info_dict['protocol'] in ('http', 'https', 'ftp', 'ftps', 'm3u8', 'rtsp', 'rtmp', 'mms')@classmethoddef available(cls):