1
0
Fork 0
mirror of https://github.com/blackjack4494/yt-dlc.git synced 2024-12-25 01:07:19 +00:00

[generic/wistia] Improve regex

This commit is contained in:
Sergey M․ 2014-10-23 23:03:07 +07:00
parent 6283c10b1c
commit 281d3f1d68

View file

@ -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')))