aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/youku.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-06-15 23:31:30 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-06-15 23:31:30 +0800
commit9383e66f9475eca0e64c09972c1392d92d17570c (patch)
tree5896d4fa34bffb90a0e9dbdb0f962064c9d57ad3 /youtube_dl/extractor/youku.py
parentc203be3fb4f00388c81564dc0c85ff8a10ff4553 (diff)
[youku] Use _match_id
Diffstat (limited to 'youtube_dl/extractor/youku.py')
-rw-r--r--youtube_dl/extractor/youku.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/youtube_dl/extractor/youku.py b/youtube_dl/extractor/youku.py
index 26e5baadc..e41b48369 100644
--- a/youtube_dl/extractor/youku.py
+++ b/youtube_dl/extractor/youku.py
@@ -1,7 +1,6 @@
# coding: utf-8
from __future__ import unicode_literals
-import re
import base64
from .common import InfoExtractor
@@ -154,8 +153,7 @@ class YoukuIE(InfoExtractor):
return _dict[fm]
def _real_extract(self, url):
- mobj = re.match(self._VALID_URL, url)
- video_id = mobj.group('id')
+ video_id = self._match_id(url)
# request basic data
data1_url = 'http://v.youku.com/player/getPlayList/VideoIDS/%s' % video_id