- if url.startswith('rtmp'):
- return RtmpFD
- if (protocol == 'm3u8') or (protocol is None and determine_ext(url) == 'm3u8'):
+ external_downloader = params.get('external_downloader')
+ if external_downloader is not None:
+ ed = get_external_downloader(external_downloader)
+ if ed.can_download(info_dict):
+ return ed
+
+ if protocol == 'm3u8' and params.get('hls_prefer_native') is True: