[extractor/generic] Support vid.me embeds

pull/8/head
Yen Chi Hsuan 2015-07-20 18:49:53 +08:00
rodzic faa1f83ab4
commit a1b85269a4
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -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)
(?: