projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07af16b
)
[wistia] Restrict embed regex (closes #25969)
author
Sergey M․
<dstftw@gmail.com>
Sat, 11 Jul 2020 11:27:19 +0000
(18:27 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 11 Jul 2020 11:27:19 +0000
(18:27 +0700)
youtube_dl/extractor/wistia.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/wistia.py
b/youtube_dl/extractor/wistia.py
index 168e5e90152b44d76dcbbbeb1b274db5dcbf5827..77febd2eb1b1cada3942c212739725135a36682b 100644
(file)
--- a/
youtube_dl/extractor/wistia.py
+++ b/
youtube_dl/extractor/wistia.py
@@
-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):