projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[jwplatform] Parse video_id from JWPlayer data
[youtube-dl]
/
youtube_dl
/
extractor
/
cbs.py
diff --git
a/youtube_dl/extractor/cbs.py
b/youtube_dl/extractor/cbs.py
index 030eeaa65301aec66f418933dc5092279756991a..a23173d6f1a9570225242692ee74d68fc061fb3d 100644
(file)
--- a/
youtube_dl/extractor/cbs.py
+++ b/
youtube_dl/extractor/cbs.py
@@
-1,7
+1,5
@@
from __future__ import unicode_literals
from __future__ import unicode_literals
-import re
-
from .theplatform import ThePlatformFeedIE
from ..utils import (
int_or_none,
from .theplatform import ThePlatformFeedIE
from ..utils import (
int_or_none,
@@
-34,7
+32,7
@@
class CBSBaseIE(ThePlatformFeedIE):
class CBSIE(CBSBaseIE):
class CBSIE(CBSBaseIE):
- _VALID_URL = r'(?:cbs|https?://(?:www\.)?(?:cbs\.com/shows/[^/]+/video|colbertlateshow\.com/(?:video|podcasts))/)(?P<id>[\w-]+)'
+ _VALID_URL = r'(?:cbs
:
|https?://(?:www\.)?(?:cbs\.com/shows/[^/]+/video|colbertlateshow\.com/(?:video|podcasts))/)(?P<id>[\w-]+)'
_TESTS = [{
'url': 'http://www.cbs.com/shows/garth-brooks/video/_u7W953k6la293J7EPTd9oHkSPs6Xn6_/connect-chat-feat-garth-brooks/',
_TESTS = [{
'url': 'http://www.cbs.com/shows/garth-brooks/video/_u7W953k6la293J7EPTd9oHkSPs6Xn6_/connect-chat-feat-garth-brooks/',