mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-12-17 22:55:42 +07:00
[generic/wistia] Improve regex
This commit is contained in:
@@ -663,7 +663,7 @@ def _playlist_from_matches(matches, getter, ie=None):
|
||||
|
||||
# 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')))
|
||||
|
||||
Reference in New Issue
Block a user