diff options
author | Remita Amine <remitamine@gmail.com> | 2016-08-04 09:37:27 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2016-08-04 09:39:06 +0100 |
commit | 217d5ae0137943829db23d13eee425e5fd7c08ae (patch) | |
tree | da76d2def7006183d686ac6ca1672f6b33b89233 /youtube_dl/extractor/generic.py | |
parent | 8b40854529eea6b32f41df448c475b87a42038d1 (diff) |
[vodplatform] Add new extractor
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r-- | youtube_dl/extractor/generic.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 5364f0b19..e89a03760 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -2207,6 +2207,14 @@ class GenericIE(InfoExtractor): return self.url_result( self._proto_relative_url(unescapeHTML(mobj.group(1))), 'Vine') + # Look for VODPlatform embeds + mobj = re.search( + r'<iframe[^>]+src=[\'"]((?:https?:)?//(?:www\.)?vod-platform\.net/embed/[^/?#]+)', + webpage) + if mobj is not None: + return self.url_result( + self._proto_relative_url(unescapeHTML(mobj.group(1))), 'VODPlatform') + # Look for Instagram embeds instagram_embed_url = InstagramIE._extract_embed_url(webpage) if instagram_embed_url is not None: |