diff options
author | Sergey M․ <dstftw@gmail.com> | 2020-07-11 18:27:19 +0700 |
---|---|---|
committer | xarantolus <xarantolus@protonmail.com> | 2020-07-28 15:34:31 +0200 |
commit | 9fa728f4e89d0d6882a76cb27902029d60455993 (patch) | |
tree | a76af8fa8a1c4a3344f268a13ce6b5cd492cf414 | |
parent | bb2c950b8eaac989032725923f8855be73d38596 (diff) | |
download | hypervideo-pre-9fa728f4e89d0d6882a76cb27902029d60455993.tar.lz hypervideo-pre-9fa728f4e89d0d6882a76cb27902029d60455993.tar.xz hypervideo-pre-9fa728f4e89d0d6882a76cb27902029d60455993.zip |
[wistia] Restrict embed regex (closes #25969)
-rw-r--r-- | youtube_dl/extractor/wistia.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/wistia.py b/youtube_dl/extractor/wistia.py index 168e5e901..77febd2eb 100644 --- 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): |