mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-24 05:36:56 +01:00
[vevo] Use _match_id
This commit is contained in:
parent
4bf99ade15
commit
4b94288301
@ -169,8 +169,7 @@ def _download_api_formats(self, video_id):
|
|||||||
preference=0)
|
preference=0)
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
mobj = re.match(self._VALID_URL, url)
|
video_id = self._match_id(url)
|
||||||
video_id = mobj.group('id')
|
|
||||||
|
|
||||||
json_url = 'http://videoplayer.vevo.com/VideoService/AuthenticateVideo?isrc=%s' % video_id
|
json_url = 'http://videoplayer.vevo.com/VideoService/AuthenticateVideo?isrc=%s' % video_id
|
||||||
response = self._download_json(json_url, video_id)
|
response = self._download_json(json_url, video_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user