From: Johny Mo Swag Date: Mon, 29 Jul 2013 19:11:57 +0000 (-0700) Subject: detect vevo embed X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=63f05de10bac9250f58b2f15539f109ec75b3af7;p=youtube-dl detect vevo embed --- 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=(.*?)&?', + 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')