1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-10 11:31:19 +00:00

detect vevo embed

This commit is contained in:
Johny Mo Swag 2013-07-29 12:11:57 -07:00
parent caeefc29eb
commit 63f05de10b

View 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')