projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[southpark.cc.com:espaƱol] Skip geo-restricted _TESTS
[youtube-dl]
/
youtube_dl
/
downloader
/
__init__.py
diff --git
a/youtube_dl/downloader/__init__.py
b/youtube_dl/downloader/__init__.py
index 19471a25073dc49fb3acaa7bf46a0cb5d47f0ea4..817591d97e88606b966b7055026f691faab840dc 100644
(file)
--- a/
youtube_dl/downloader/__init__.py
+++ b/
youtube_dl/downloader/__init__.py
@@
-32,7
+32,7
@@
def get_suitable_downloader(info_dict, params={}):
protocol = determine_protocol(info_dict)
info_dict['protocol'] = protocol
protocol = determine_protocol(info_dict)
info_dict['protocol'] = protocol
- # if (info_dict.get('start_time') or info_dict.get('end_time')) and FFmpegFD.can_download(info_dict):
+ # if (info_dict.get('start_time') or info_dict.get('end_time')) and
not info_dict.get('requested_formats') and
FFmpegFD.can_download(info_dict):
# return FFmpegFD
external_downloader = params.get('external_downloader')
# return FFmpegFD
external_downloader = params.get('external_downloader')
@@
-41,9
+41,12
@@
def get_suitable_downloader(info_dict, params={}):
if ed.can_download(info_dict):
return ed
if ed.can_download(info_dict):
return ed
- if protocol == 'm3u8' and params.get('hls_prefer_native'):
+ if protocol == 'm3u8' and params.get('hls_prefer_native')
is True
:
return HlsFD
return HlsFD
+ if protocol == 'm3u8_native' and params.get('hls_prefer_native') is False:
+ return FFmpegFD
+
return PROTOCOL_MAP.get(protocol, HttpFD)
return PROTOCOL_MAP.get(protocol, HttpFD)