[extractor/common] Fix media type extraction for HTML5 media tags in start/end form
authorSergey M․ <dstftw@gmail.com>
Sun, 6 Dec 2020 17:45:16 +0000 (00:45 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 6 Dec 2020 17:45:16 +0000 (00:45 +0700)
youtube_dl/extractor/common.py

index a21afefeb848726271df10c49650b2a950036e86..864596e66a6a4a3fc88f1ac8e8b9339ffd2aa439 100644 (file)
@@ -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': {},