From 68379de561a3f7bc51cf82b983c77d25cd596123 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sat, 10 Apr 2021 21:15:32 +0530 Subject: [PATCH] [downloaders] Fix API access Bug introduced by: 52a8a1e1b93dbc88f0018d4842f1e90ba96e095f --- yt_dlp/downloader/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/downloader/__init__.py b/yt_dlp/downloader/__init__.py index ceb075472..3c8008890 100644 --- a/yt_dlp/downloader/__init__.py +++ b/yt_dlp/downloader/__init__.py @@ -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'