diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2015-07-20 18:49:53 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2015-07-20 18:49:53 +0800 |
commit | a1b85269a49404cab1f549d7c59352fe48dfbf19 (patch) | |
tree | 5dfab6d1418596993ed91752589e41d3a7e606b0 | |
parent | faa1f83ab481a1f456db13d3ead7f0f22908aab1 (diff) |
[extractor/generic] Support vid.me embeds
-rw-r--r-- | youtube_dl/extractor/generic.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index dc24a8a8b..cd133a10c 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -1196,6 +1196,12 @@ class GenericIE(InfoExtractor): if vimeo_url is not None: return self.url_result(vimeo_url) + vid_me_embed_url = self._search_regex( + r'src=[\'"](https?://vid\.me/[^\'"]+)[\'"]', + webpage, 'vid.me embed', default=None) + if vid_me_embed_url is not None: + return self.url_result(vid_me_embed_url, 'Vidme') + # Look for embedded YouTube player matches = re.findall(r'''(?x) (?: |