]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[extractor/generic] Support vid.me embeds
authorYen Chi Hsuan <yan12125@gmail.com>
Mon, 20 Jul 2015 10:49:53 +0000 (18:49 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Mon, 20 Jul 2015 10:49:53 +0000 (18:49 +0800)
youtube_dl/extractor/generic.py

index dc24a8a8b3c540fd53b929ce8389f639d95d96f9..cd133a10c38c6d7bf081d550160bf730b456515e 100644 (file)
@@ -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)
             (?: