projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[README.md] Clarify unavailable sequences in output format
[youtube-dl]
/
youtube_dl
/
downloader
/
__init__.py
diff --git
a/youtube_dl/downloader/__init__.py
b/youtube_dl/downloader/__init__.py
index eff1122c5c09eff494ad34af835b06e33c9e4751..dccc59212d3028bb9a96f0eb9ffff4acb0be681e 100644
(file)
--- a/
youtube_dl/downloader/__init__.py
+++ b/
youtube_dl/downloader/__init__.py
@@
-6,8
+6,9
@@
from .f4m import F4mFD
from .hls import HlsFD
from .hls import NativeHlsFD
from .http import HttpFD
from .hls import HlsFD
from .hls import NativeHlsFD
from .http import HttpFD
-from .
mplayer import Mplayer
FD
+from .
rtsp import Rtsp
FD
from .rtmp import RtmpFD
from .rtmp import RtmpFD
+from .dash import DashSegmentsFD
from ..utils import (
determine_protocol,
from ..utils import (
determine_protocol,
@@
-17,9
+18,10
@@
PROTOCOL_MAP = {
'rtmp': RtmpFD,
'm3u8_native': NativeHlsFD,
'm3u8': HlsFD,
'rtmp': RtmpFD,
'm3u8_native': NativeHlsFD,
'm3u8': HlsFD,
- 'mms':
Mplayer
FD,
- 'rtsp':
Mplayer
FD,
+ 'mms':
Rtsp
FD,
+ 'rtsp':
Rtsp
FD,
'f4m': F4mFD,
'f4m': F4mFD,
+ 'http_dash_segments': DashSegmentsFD,
}
}
@@
-34,6
+36,9
@@
def get_suitable_downloader(info_dict, params={}):
if ed.supports(info_dict):
return ed
if ed.supports(info_dict):
return ed
+ if protocol == 'm3u8' and params.get('hls_prefer_native'):
+ return NativeHlsFD
+
return PROTOCOL_MAP.get(protocol, HttpFD)
return PROTOCOL_MAP.get(protocol, HttpFD)