1 from __future__ import unicode_literals
3 from .common import FileDownloader
5 from .hls import NativeHlsFD
6 from .http import HttpFD
7 from .mplayer import MplayerFD
8 from .rtmp import RtmpFD
17 'm3u8_native': NativeHlsFD,
25 def get_suitable_downloader(info_dict, params={}):
26 """Get the downloader class that can handle the info dict."""
27 protocol = determine_protocol(info_dict)
28 info_dict['protocol'] = protocol
30 return PROTOCOL_MAP.get(protocol, HttpFD)
34 'get_suitable_downloader',