diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2015-07-08 13:43:23 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2015-07-08 13:43:23 +0800 |
commit | 1316b54956ac871b4644b6760c5bf88207b2e58f (patch) | |
tree | 926a0b77c68a8970df7cb73724bf008d9f73abda | |
parent | cbc1fadd6f544619b711209b68ea15a912ca0fa1 (diff) |
[clipsyndicate] Use _match_id
-rw-r--r-- | youtube_dl/extractor/clipsyndicate.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/youtube_dl/extractor/clipsyndicate.py b/youtube_dl/extractor/clipsyndicate.py index b1e45a677..8306d6fb7 100644 --- a/youtube_dl/extractor/clipsyndicate.py +++ b/youtube_dl/extractor/clipsyndicate.py @@ -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') |