diff options
author | Remita Amine <remitamine@gmail.com> | 2016-08-29 07:56:54 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2016-08-29 07:57:20 +0100 |
commit | 93b84045994ca88b486901f54de1102347a67537 (patch) | |
tree | f39b2ae746a2ea3f049c0142c46b31ffd74e3917 /youtube_dl/extractor/generic.py | |
parent | 9ba1e1dcc0dc27d36f3f396cb608cef7cd50e48a (diff) |
[generic,vodplatform] improve embed regex
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r-- | youtube_dl/extractor/generic.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index c6e655c84..24b217715 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -2243,11 +2243,11 @@ class GenericIE(InfoExtractor): # Look for VODPlatform embeds mobj = re.search( - r'<iframe[^>]+src=[\'"]((?:https?:)?//(?:www\.)?vod-platform\.net/embed/[^/?#]+)', + r'<iframe[^>]+src=(["\'])(?P<url>(?:https?:)?//(?:www\.)?vod-platform\.net/[eE]mbed/.+?)\1', webpage) if mobj is not None: return self.url_result( - self._proto_relative_url(unescapeHTML(mobj.group(1))), 'VODPlatform') + self._proto_relative_url(unescapeHTML(mobj.group('url'))), 'VODPlatform') # Look for Instagram embeds instagram_embed_url = InstagramIE._extract_embed_url(webpage) |