From: Sergey M․ Date: Sun, 6 Dec 2020 17:45:16 +0000 (+0700) Subject: [extractor/common] Fix media type extraction for HTML5 media tags in start/end form X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=6ad0d8781e2b156a4599abcebaa0b91b7e3131f4;p=youtube-dl [extractor/common] Fix media type extraction for HTML5 media tags in start/end form --- 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(?:amp-)?(?:video|audio))(?:\s+[^>]*)?>)(.*?)', webpage)) - for media_tag, media_type, media_content in media_tags: + r'(?s)(<(?P(?:amp-)?(video|audio))(?:\s+[^>]*)?>)(.*?)', webpage)) + for media_tag, _, media_type, media_content in media_tags: media_info = { 'formats': [], 'subtitles': {},