]> git.bitcoin.ninja Git - youtube-dl/commitdiff
detect vevo embed
authorJohny Mo Swag <johnymo@me.com>
Mon, 29 Jul 2013 19:11:57 +0000 (12:11 -0700)
committerJohny Mo Swag <johnymo@me.com>
Mon, 29 Jul 2013 19:11:57 +0000 (12:11 -0700)
youtube_dl/extractor/worldstarhiphop.py

index 5b9779c05853ab815aa56d710476356c56c8449b..8715848ee220391d6e7512f2230c5ada0258dcb9 100644 (file)
@@ -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')