commit 4b942883019968c556a6c6b989b346cecc474ac2
parent 4bf99ade15c2b9dc0ec0ce4e6127d4cd56f87896
Author: Yen Chi Hsuan <yan12125@gmail.com>
Date: Fri, 11 Dec 2015 17:32:29 +0800
[vevo] Use _match_id
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/youtube_dl/extractor/vevo.py b/youtube_dl/extractor/vevo.py
@@ -169,8 +169,7 @@ class VevoIE(InfoExtractor):
preference=0)
def _real_extract(self, url):
- mobj = re.match(self._VALID_URL, url)
- video_id = mobj.group('id')
+ video_id = self._match_id(url)
json_url = 'http://videoplayer.vevo.com/VideoService/AuthenticateVideo?isrc=%s' % video_id
response = self._download_json(json_url, video_id)