]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/cbs.py
Merge tag 'upstream/2015.02.28'
[youtubedl] / youtube_dl / extractor / cbs.py
index db48dc24fa2a4698ac0dc8a28033b8cca51d3d44..1ceb9d8d9df6c0268e33de5e34c01a245e134e05 100644 (file)
@@ -1,7 +1,5 @@
 from __future__ import unicode_literals
 
 from __future__ import unicode_literals
 
-import re
-
 from .common import InfoExtractor
 
 
 from .common import InfoExtractor
 
 
@@ -39,10 +37,9 @@ class CBSIE(InfoExtractor):
     }]
 
     def _real_extract(self, url):
     }]
 
     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*'([^']+)';",
             webpage, 'real video ID')
         webpage = self._download_webpage(url, video_id)
         real_id = self._search_regex(
             r"video\.settings\.pid\s*=\s*'([^']+)';",
             webpage, 'real video ID')
-        return self.url_result(u'theplatform:%s' % real_id)
+        return self.url_result('theplatform:%s' % real_id)