mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-07-15 18:17:38 -05:00
[extractor/common] Add support for dl8-* media tags (closes #27283)
This commit is contained in:
@ -2513,7 +2513,8 @@ class InfoExtractor(object):
|
||||
# amp-video and amp-audio are very similar to their HTML5 counterparts
|
||||
# so we wll include them right here (see
|
||||
# https://www.ampproject.org/docs/reference/components/amp-video)
|
||||
_MEDIA_TAG_NAME_RE = r'(?:amp-)?(video|audio)'
|
||||
# For dl8-* tags see https://delight-vr.com/documentation/dl8-video/
|
||||
_MEDIA_TAG_NAME_RE = r'(?:(?:amp|dl8(?:-live)?)-)?(video|audio)'
|
||||
media_tags = [(media_tag, media_type, '')
|
||||
for media_tag, media_type
|
||||
in re.findall(r'(?s)(<%s[^>]*/>)' % _MEDIA_TAG_NAME_RE, webpage)]
|
||||
|
Reference in New Issue
Block a user