[vevo] Use _match_id
authorYen Chi Hsuan <yan12125@gmail.com>
Fri, 11 Dec 2015 09:32:29 +0000 (17:32 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Fri, 11 Dec 2015 09:32:29 +0000 (17:32 +0800)
youtube_dl/extractor/vevo.py

index 61813301a832bf060b35580007548d6144f0a9b3..1d834970c116b7dc4e0b94d4e2b751130414f263 100644 (file)
@@ -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)