[downloader/external] check for external downloaders availability

This commit is contained in:
remitamine
2016-02-20 07:58:25 +01:00
parent 12b84ac8c1
commit 99cbe98ce8
2 changed files with 23 additions and 2 deletions

View File

@@ -31,13 +31,13 @@ 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.supports(info_dict):
if (info_dict.get('start_time') or info_dict.get('end_time')) and FFmpegFD.available() and FFmpegFD.supports(info_dict):
return FFmpegFD
external_downloader = params.get('external_downloader')
if external_downloader is not None:
ed = get_external_downloader(external_downloader)
if ed.supports(info_dict):
if ed.available() and ed.supports(info_dict):
return ed
if protocol == 'm3u8' and params.get('hls_prefer_native'):