Browse Source

[cbs] Modernize

Philipp Hagemeister 10 years ago
parent
commit
1c2528c8a3
1 changed files with 1 additions and 4 deletions
  1. 1 4
      youtube_dl/extractor/cbs.py

+ 1 - 4
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*'([^']+)';",