projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caeefc2
)
detect vevo embed
author
Johny Mo Swag
<johnymo@me.com>
Mon, 29 Jul 2013 19:11:57 +0000
(12:11 -0700)
committer
Johny Mo Swag
<johnymo@me.com>
Mon, 29 Jul 2013 19:11:57 +0000
(12:11 -0700)
youtube_dl/extractor/worldstarhiphop.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/worldstarhiphop.py
b/youtube_dl/extractor/worldstarhiphop.py
index 5b9779c05853ab815aa56d710476356c56c8449b..8715848ee220391d6e7512f2230c5ada0258dcb9 100644
(file)
--- a/
youtube_dl/extractor/worldstarhiphop.py
+++ b/
youtube_dl/extractor/worldstarhiphop.py
@@
-21,6
+21,14
@@
class WorldStarHipHopIE(InfoExtractor):
webpage_src = self._download_webpage(url, video_id)
+ video_url = self._search_regex('videoId=(.*?)&?',
+ webpage_src, u'video URL', fatal=False)
+
+ if video_url:
+ self.to_screen(u'Vevo video detected:')
+ vevo_id = 'vevo:%s' video_url
+ self.url_result(vevo_id)
+
video_url = self._search_regex(r'so\.addVariable\("file","(.*?)"\)',
webpage_src, u'video URL')