1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-29 09:54:39 +01:00

Merge pull request #1149 from pishposhmcgee/patch-3

[vevo] Modified m_urls regex and video_url
This commit is contained in:
Jaime Marquínez Ferrándiz 2013-07-30 01:57:37 -07:00
commit 152c8f349d

View File

@ -35,12 +35,12 @@ class VevoIE(InfoExtractor):
self.report_extraction(video_id) self.report_extraction(video_id)
video_info = json.loads(info_json) 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: if m_urls is None or len(m_urls) == 0:
raise ExtractorError(u'Unable to extract video url') raise ExtractorError(u'Unable to extract video url')
# They are sorted from worst to best quality # They are sorted from worst to best quality
m_url = m_urls[-1] 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') ext = m_url.group('ext')
return {'url': video_url, return {'url': video_url,