summary refs log tree commit diff
diff options
context:
space:
mode:
authorpishposhmcgee <pishposh.mcgee@gmail.com>2013-07-29 15:45:20 -0500
committerpishposhmcgee <pishposh.mcgee@gmail.com>2013-07-29 15:45:20 -0500
commita3124ba49fa7e089e761216ea4eb739aae6b07e5 (patch)
tree15fe088f1b8b1f0d67762f54ff057f99f4a957c0
parentcaeefc29ebce8dbfb0c25a79887719055276c9eb (diff)
downloadyoutube-dl-a3124ba49fa7e089e761216ea4eb739aae6b07e5.tar.gz
youtube-dl-a3124ba49fa7e089e761216ea4eb739aae6b07e5.tar.xz
youtube-dl-a3124ba49fa7e089e761216ea4eb739aae6b07e5.zip
Modified m_urls regex and video_url
Some videos have a leading slash, some do not
-rw-r--r--youtube_dl/extractor/vevo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/vevo.py b/youtube_dl/extractor/vevo.py
index 3b16dcfbc..67537eae5 100644
--- a/youtube_dl/extractor/vevo.py
+++ b/youtube_dl/extractor/vevo.py
@@ -35,12 +35,12 @@ class VevoIE(InfoExtractor):
 
         self.report_extraction(video_id)
         video_info = json.loads(info_json)
-        m_urls = list(re.finditer(r'<video src="(?P<ext>.*?):(?P<url>.*?)"', links_webpage))
+        m_urls = list(re.finditer(r'<video src="(?P<ext>.*?):/?(?P<url>.*?)"', links_webpage))
         if m_urls is None or len(m_urls) == 0:
             raise ExtractorError(u'Unable to extract video url')
         # They are sorted from worst to best quality
         m_url = m_urls[-1]
-        video_url = base_url + m_url.group('url')
+        video_url = base_url + '/' + m_url.group('url')
         ext = m_url.group('ext')
 
         return {'url': video_url,