[clipsyndicate] Use _match_id
authorYen Chi Hsuan <yan12125@gmail.com>
Wed, 8 Jul 2015 05:43:23 +0000 (13:43 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Wed, 8 Jul 2015 05:43:23 +0000 (13:43 +0800)
youtube_dl/extractor/clipsyndicate.py

index b1e45a677e5fac92d9549c8c204b37b0c059874f..8306d6fb7d0d4414cff36f7b381ca9c877820f58 100644 (file)
@@ -1,7 +1,5 @@
 from __future__ import unicode_literals
 
-import re
-
 from .common import InfoExtractor
 from ..utils import (
     find_xpath_attr,
@@ -28,8 +26,7 @@ class ClipsyndicateIE(InfoExtractor):
     }]
 
     def _real_extract(self, url):
-        mobj = re.match(self._VALID_URL, url)
-        video_id = mobj.group('id')
+        video_id = self._match_id(url)
         js_player = self._download_webpage(
             'http://eplayer.clipsyndicate.com/embed/player.js?va_id=%s' % video_id,
             video_id, 'Downlaoding player')