diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2015-02-19 01:22:50 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2015-02-19 01:22:50 +0100 |
commit | 1c2528c8a3c599740558d5d752dfb368c8714a89 (patch) | |
tree | de73eb0131ccf136aaeca85e5d3469493bc0fcac /youtube_dl/extractor | |
parent | 7bd15b1a0378cff6960cd55e40819ef3967f747c (diff) |
[cbs] Modernize
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/cbs.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/youtube_dl/extractor/cbs.py b/youtube_dl/extractor/cbs.py index e43756ec6..1ceb9d8d9 100644 --- a/youtube_dl/extractor/cbs.py +++ b/youtube_dl/extractor/cbs.py @@ -1,7 +1,5 @@ from __future__ import unicode_literals -import re - from .common import InfoExtractor @@ -39,8 +37,7 @@ class CBSIE(InfoExtractor): }] def _real_extract(self, url): - mobj = re.match(self._VALID_URL, url) - video_id = mobj.group('id') + video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) real_id = self._search_regex( r"video\.settings\.pid\s*=\s*'([^']+)';", |