]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/downloader/__init__.py
[cleanup] Misc fixes and cleanup
[yt-dlp.git] / yt_dlp / downloader / __init__.py
index 5aba303dd5474a83609c353426cdfeb6aee0c6fd..3b4a826352102c25f00c47380c962ba548a8aee7 100644 (file)
@@ -1,4 +1,3 @@
-from ..compat import compat_str
 from ..utils import NO_DEFAULT, determine_protocol
 
 
@@ -91,7 +90,7 @@ def _get_suitable_downloader(info_dict, protocol, params, default):
     info_dict['protocol'] = protocol
     downloaders = params.get('external_downloader')
     external_downloader = (
-        downloaders if isinstance(downloaders, compat_str) or downloaders is None
+        downloaders if isinstance(downloaders, str) or downloaders is None
         else downloaders.get(shorten_protocol_name(protocol, True), downloaders.get('default')))
 
     if external_downloader is None: