X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fmtv.py;h=969db71139b1f81d290ad6549ed3b3d8207da0c7;hb=9c5cd0948fa76952c32bbeaf87b4186656be3d6f;hp=a801c8123eb66d153e1752ccb7d1fbc1e0ac7ee6;hpb=825e0984e27f0c626c4d072066e0c9cae9069704;p=youtube-dl diff --git a/youtube_dl/extractor/mtv.py b/youtube_dl/extractor/mtv.py index a801c8123..969db7113 100644 --- a/youtube_dl/extractor/mtv.py +++ b/youtube_dl/extractor/mtv.py @@ -27,6 +27,14 @@ class MTVIE(InfoExtractor): webpage = self._download_webpage(url, video_id) + # Some videos come from Vevo.com + m_vevo = re.search(r'isVevoVideo = true;.*?vevoVideoId = "(.*?)";', + webpage, re.DOTALL) + if m_vevo: + vevo_id = m_vevo.group(1); + self.to_screen(u'Vevo video detected: %s' % vevo_id) + return self.url_result('vevo:%s' % vevo_id, ie='Vevo') + #song_name = self._html_search_regex(r'', # webpage, u'song name', fatal=False)