diff options
author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-07-30 01:57:37 -0700 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-07-30 01:57:37 -0700 |
commit | 152c8f349d9029dc8465bef9474143567f687562 (patch) | |
tree | cad05bf08300f0b1e453ed5527f71bc4f6da9c5d /youtube_dl | |
parent | 0725f584e157e9ae467cb62af60d5f3c9bcf8e2c (diff) | |
parent | a3124ba49fa7e089e761216ea4eb739aae6b07e5 (diff) |
Merge pull request #1149 from pishposhmcgee/patch-3
[vevo] Modified m_urls regex and video_url
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/vevo.py | 4 |
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, |