projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bd15b1
)
[cbs] Modernize
author
Philipp Hagemeister
<phihag@phihag.de>
Thu, 19 Feb 2015 00:22:50 +0000
(
01:22
+0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Thu, 19 Feb 2015 00:22:50 +0000
(
01:22
+0100)
youtube_dl/extractor/cbs.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/cbs.py
b/youtube_dl/extractor/cbs.py
index e43756ec69b1d7f1872e45cc6901b41752ec6ef6..1ceb9d8d9df6c0268e33de5e34c01a245e134e05 100644
(file)
--- 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*'([^']+)';",