projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
faa1f83
)
[extractor/generic] Support vid.me embeds
author
Yen Chi Hsuan
<yan12125@gmail.com>
Mon, 20 Jul 2015 10:49:53 +0000
(18:49 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Mon, 20 Jul 2015 10:49:53 +0000
(18:49 +0800)
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index dc24a8a8b3c540fd53b929ce8389f639d95d96f9..cd133a10c38c6d7bf081d550160bf730b456515e 100644
(file)
--- 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)
(?: