summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohny Mo Swag <johnymo@me.com>2013-07-29 12:11:57 -0700
committerJohny Mo Swag <johnymo@me.com>2013-07-29 12:11:57 -0700
commit63f05de10bac9250f58b2f15539f109ec75b3af7 (patch)
tree1cff278630e3ab0db193f32300dd8d98e72f9463
parentcaeefc29ebce8dbfb0c25a79887719055276c9eb (diff)
downloadyoutube-dl-63f05de10bac9250f58b2f15539f109ec75b3af7.tar.gz
youtube-dl-63f05de10bac9250f58b2f15539f109ec75b3af7.tar.xz
youtube-dl-63f05de10bac9250f58b2f15539f109ec75b3af7.zip
detect vevo embed
-rw-r--r--youtube_dl/extractor/worldstarhiphop.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/youtube_dl/extractor/worldstarhiphop.py b/youtube_dl/extractor/worldstarhiphop.py
index 5b9779c05..8715848ee 100644
--- 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=(.*?)&amp?',
+            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')