aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2020-12-07 00:45:16 +0700
committerSergey M․ <dstftw@gmail.com>2020-12-07 00:45:16 +0700
commit6ad0d8781e2b156a4599abcebaa0b91b7e3131f4 (patch)
tree8ce1ba982429744d8abc3ec51dc075a81b09b1a5
parentf2c704e1126d614a7cd3283ed94a2226587d7a33 (diff)
[extractor/common] Fix media type extraction for HTML5 media tags in start/end form
-rw-r--r--youtube_dl/extractor/common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index a21afefeb..864596e66 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -2521,8 +2521,8 @@ class InfoExtractor(object):
# Allowing more characters may end up in significant slow down (see
# https://github.com/ytdl-org/youtube-dl/issues/11979, example URL:
# http://www.porntrex.com/maps/videositemap.xml).
- r'(?s)(<(?P<tag>(?:amp-)?(?:video|audio))(?:\s+[^>]*)?>)(.*?)</(?P=tag)>', webpage))
- for media_tag, media_type, media_content in media_tags:
+ r'(?s)(<(?P<tag>(?:amp-)?(video|audio))(?:\s+[^>]*)?>)(.*?)</(?P=tag)>', webpage))
+ for media_tag, _, media_type, media_content in media_tags:
media_info = {
'formats': [],
'subtitles': {},