1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-12-27 16:57:53 +01:00

[wistia] Restrict embed regex (closes #25969)

This commit is contained in:
Sergey M․ 2020-07-11 18:27:19 +07:00 committed by tsia
parent 844fe43642
commit 6fcbdc54a0

View File

@ -56,7 +56,7 @@ class WistiaIE(InfoExtractor):
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):