]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/downloader/__init__.py
4ea5811a56f77180afea16b2e5fbc30056850b49
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
15 def get_suitable_downloader(info_dict
):
16 """Get the downloader class that can handle the info dict."""
17 url
= info_dict
['url']
18 protocol
= info_dict
.get('protocol')
20 if url
.startswith('rtmp'):
22 if (protocol
== 'm3u8') or (protocol
is None and determine_ext(url
) == 'm3u8'):
24 if url
.startswith('mms') or url
.startswith('rtsp'):
26 if determine_ext(url
) == 'f4m':