about summary refs log tree commit diff
path: root/youtube_dl/extractor/common.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2020-12-07 00:59:25 +0700
committerSergey M․ <dstftw@gmail.com>2020-12-07 01:08:22 +0700
commit91dd25fe1e18aa3f617005799a8f5018a551c7dd (patch)
treeacc8d1c8a0fd44daecfe7e10c4c2eb342895bea5 /youtube_dl/extractor/common.py
parent06bf2ac20f2fb64df9f6e4cd1dba267b25effd22 (diff)
downloadyoutube-dl-91dd25fe1e18aa3f617005799a8f5018a551c7dd.tar.gz
youtube-dl-91dd25fe1e18aa3f617005799a8f5018a551c7dd.tar.xz
youtube-dl-91dd25fe1e18aa3f617005799a8f5018a551c7dd.zip
[extractor/common] Add support for dl8-* media tags (closes #27283)
Diffstat (limited to 'youtube_dl/extractor/common.py')
-rw-r--r--youtube_dl/extractor/common.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 877873ebd..dd07a1cae 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -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)]