Browse Source

detect vevo embed

rtmp_test
Johny Mo Swag 12 years ago
parent
commit
63f05de10b
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      youtube_dl/extractor/worldstarhiphop.py

+ 8
- 0
youtube_dl/extractor/worldstarhiphop.py View File

@ -21,6 +21,14 @@ class WorldStarHipHopIE(InfoExtractor):
webpage_src = self._download_webpage(url, video_id) 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","(.*?)"\)', video_url = self._search_regex(r'so\.addVariable\("file","(.*?)"\)',
webpage_src, u'video URL') webpage_src, u'video URL')


Loading…
Cancel
Save