]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[youku] Use _match_id
authorYen Chi Hsuan <yan12125@gmail.com>
Mon, 15 Jun 2015 15:31:30 +0000 (23:31 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Mon, 15 Jun 2015 15:31:30 +0000 (23:31 +0800)
youtube_dl/extractor/youku.py

index 26e5baadc9d5b7c60450ddb9bc9c0f2b585101f7..e41b483699091a45b6bc5fe780f6f8542d5746ab 100644 (file)
@@ -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