X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=youtube_dl%2Fextractor%2Fworldstarhiphop.py;h=fc9237a3f2eb2b456302659b1954c2715e6feb35;hb=ecbe1ad2073ffa4b084a69854e000f6e03cba09c;hp=8715848ee220391d6e7512f2230c5ada0258dcb9;hpb=63f05de10bac9250f58b2f15539f109ec75b3af7;p=youtube-dl.git diff --git a/youtube_dl/extractor/worldstarhiphop.py b/youtube_dl/extractor/worldstarhiphop.py index 8715848ee..fc9237a3f 100644 --- a/youtube_dl/extractor/worldstarhiphop.py +++ b/youtube_dl/extractor/worldstarhiphop.py @@ -21,13 +21,12 @@ class WorldStarHipHopIE(InfoExtractor): webpage_src = self._download_webpage(url, video_id) - video_url = self._search_regex('videoId=(.*?)&?', - webpage_src, u'video URL', fatal=False) + m_vevo_id = re.search(r'videoId=(.*?)&?', + webpage_src) - if video_url: + if m_vevo_id is not None: self.to_screen(u'Vevo video detected:') - vevo_id = 'vevo:%s' video_url - self.url_result(vevo_id) + return self.url_result('vevo:%s' % m_vevo_id.group(1), ie='Vevo') video_url = self._search_regex(r'so\.addVariable\("file","(.*?)"\)', webpage_src, u'video URL')