1 from __future__ import unicode_literals
3 from .common import FileDownloader
5 from .http import HttpFD
6 from .mplayer import MplayerFD
7 from .rtmp import RtmpFD
14 def get_suitable_downloader(info_dict):
15 """Get the downloader class that can handle the info dict."""
16 url = info_dict['url']
17 protocol = info_dict.get('protocol')
19 if url.startswith('rtmp'):
21 if (protocol == 'm3u8') or (protocol is None and determine_ext(url) == 'm3u8'):
23 if url.startswith('mms') or url.startswith('rtsp'):