Skip to content

Commit

Permalink
[extractor/common] Fix media type extraction for HTML5 media tags in …
Browse files Browse the repository at this point in the history
…start/end form
  • Loading branch information
dstftw committed Dec 6, 2020
1 parent f2c704e commit 6ad0d87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions youtube_dl/extractor/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -2521,8 +2521,8 @@ def _media_formats(src, cur_media_type, type_info={}):
# 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': {},
Expand Down

0 comments on commit 6ad0d87

Please sign in to comment.