[downloaders] Fix API access

Bug introduced by: 52a8a1e1b9
pull/310/head
pukkandan 4 years ago
parent d9aa233295
commit 68379de561
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

@ -70,7 +70,7 @@ def get_suitable_downloader(info_dict, params={}, default=HttpFD):
downloaders = params.get('external_downloader')
external_downloader = (
downloaders if isinstance(downloaders, compat_str)
downloaders if isinstance(downloaders, compat_str) or downloaders is None
else downloaders.get(shorten_protocol_name(protocol, True), downloaders.get('default')))
if external_downloader and external_downloader.lower() == 'native':
external_downloader = 'native'

Loading…
Cancel
Save