projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6283c10
)
[generic/wistia] Improve regex
author
Sergey M․
<dstftw@gmail.com>
Thu, 23 Oct 2014 16:03:07 +0000
(23:03 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 23 Oct 2014 16:03:07 +0000
(23:03 +0700)
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index bf957fa3fdc24ae84c17aa5ae313d9ca3be14395..e13816c66b966d0209e686107e2275a3ceaeb91f 100644
(file)
--- a/
youtube_dl/extractor/generic.py
+++ b/
youtube_dl/extractor/generic.py
@@
-663,7
+663,7
@@
class GenericIE(InfoExtractor):
# Look for embedded Wistia player
match = re.search(
- r'
(?:<meta content|<
iframe[^>]+?src)=(["\'])(?P<url>(?:https?:)?//(?:fast\.)?wistia\.net/embed/iframe/.+?)\1', webpage)
+ r'
<(?:meta[^>]+?content|
iframe[^>]+?src)=(["\'])(?P<url>(?:https?:)?//(?:fast\.)?wistia\.net/embed/iframe/.+?)\1', webpage)
if match:
embed_url = self._proto_relative_url(
unescapeHTML(match.group('url')))