Skip to content

Commit

Permalink
[wistia] Restrict embed regex (closes ytdl-org#25969)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Jul 11, 2020
1 parent 07af16b commit 718393c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/wistia.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _extract_urls(webpage):
urls.append(unescapeHTML(match.group('url')))
for match in re.finditer(
r'''(?sx)
<div[^>]+class=(["']).*?\bwistia_async_(?P<id>[a-z0-9]{10})\b.*?\2
<div[^>]+class=(["'])(?:(?!\1).)*?\bwistia_async_(?P<id>[a-z0-9]{10})\b(?:(?!\1).)*?\1
''', webpage):
urls.append('wistia:%s' % match.group('id'))
for match in re.finditer(r'(?:data-wistia-?id=["\']|Wistia\.embed\(["\']|id=["\']wistia_)(?P<id>[a-z0-9]{10})', webpage):
Expand Down

0 comments on commit 718393c

Please sign in to comment.