mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[youku] Use _match_id
This commit is contained in:
parent
c203be3fb4
commit
9383e66f94
1 changed files with 1 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import re
|
|
||||||
import base64
|
import base64
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
|
@ -154,8 +153,7 @@ def get_format_name(self, fm):
|
||||||
return _dict[fm]
|
return _dict[fm]
|
||||||
|
|
||||||
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')
|
|
||||||
|
|
||||||
# request basic data
|
# request basic data
|
||||||
data1_url = 'http://v.youku.com/player/getPlayList/VideoIDS/%s' % video_id
|
data1_url = 'http://v.youku.com/player/getPlayList/VideoIDS/%s' % video_id
|
||||||
|
|
Loading…
Reference in a new issue