mirror of
https://github.com/hexbinoct/youtube-dlc.git
synced 2025-05-04 08:33:04 +00:00
[Core] hls manifests, dynamic mpd
This commit is contained in:
@@ -2071,8 +2071,9 @@ class InfoExtractor(object):
|
||||
http://standards.iso.org/ittf/PubliclyAvailableStandards/c065274_ISO_IEC_23009-1_2014.zip
|
||||
2. https://en.wikipedia.org/wiki/Dynamic_Adaptive_Streaming_over_HTTP
|
||||
"""
|
||||
if mpd_doc.get('type') == 'dynamic':
|
||||
return []
|
||||
if not self._downloader.params.get('dynamic_mpd'):
|
||||
if mpd_doc.get('type') == 'dynamic':
|
||||
return []
|
||||
|
||||
namespace = self._search_regex(r'(?i)^{([^}]+)?}MPD$', mpd_doc.tag, 'namespace', default=None)
|
||||
|
||||
|
||||
@@ -2244,7 +2244,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||
a_format['player_url'] = player_url
|
||||
# Accept-Encoding header causes failures in live streams on Youtube and Youtube Gaming
|
||||
a_format.setdefault('http_headers', {})['Youtubedl-no-compression'] = 'True'
|
||||
formats.append(a_format)
|
||||
if self._downloader.params.get('youtube_include_hls_manifest', True):
|
||||
formats.append(a_format)
|
||||
else:
|
||||
error_message = extract_unavailable_message()
|
||||
if not error_message:
|
||||
|
||||
Reference in New Issue
Block a user