projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
21ba7d0
)
[cbsnews] Update _TESTS of CBSNewsLiveVideoIE
author
Yen Chi Hsuan
<yan12125@gmail.com>
Fri, 15 Jul 2016 16:03:12 +0000
(
00:03
+0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 16 Jul 2016 07:37:54 +0000
(15:37 +0800)
youtube_dl/extractor/cbsnews.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/cbsnews.py
b/youtube_dl/extractor/cbsnews.py
index 387537e766fc4886201285f221022181b2beeb53..9328e3e2070b434d8e3e3f98f4f13afddc95b3a7 100644
(file)
--- a/
youtube_dl/extractor/cbsnews.py
+++ b/
youtube_dl/extractor/cbsnews.py
@@
-26,6
+26,7
@@
class CBSNewsIE(CBSBaseIE):
# rtmp download
'skip_download': True,
},
# rtmp download
'skip_download': True,
},
+ 'skip': 'Subscribers only',
},
{
'url': 'http://www.cbsnews.com/videos/fort-hood-shooting-army-downplays-mental-illness-as-cause-of-attack/',
},
{
'url': 'http://www.cbsnews.com/videos/fort-hood-shooting-army-downplays-mental-illness-as-cause-of-attack/',
@@
-69,7
+70,7
@@
class CBSNewsLiveVideoIE(InfoExtractor):
IE_DESC = 'CBS News Live Videos'
_VALID_URL = r'https?://(?:www\.)?cbsnews\.com/live/video/(?P<id>[\da-z_-]+)'
IE_DESC = 'CBS News Live Videos'
_VALID_URL = r'https?://(?:www\.)?cbsnews\.com/live/video/(?P<id>[\da-z_-]+)'
- _TEST
=
{
+ _TEST
S = [
{
'url': 'http://www.cbsnews.com/live/video/clinton-sanders-prepare-to-face-off-in-nh/',
'info_dict': {
'id': 'clinton-sanders-prepare-to-face-off-in-nh',
'url': 'http://www.cbsnews.com/live/video/clinton-sanders-prepare-to-face-off-in-nh/',
'info_dict': {
'id': 'clinton-sanders-prepare-to-face-off-in-nh',
@@
-77,7
+78,15
@@
class CBSNewsLiveVideoIE(InfoExtractor):
'title': 'Clinton, Sanders Prepare To Face Off In NH',
'duration': 334,
},
'title': 'Clinton, Sanders Prepare To Face Off In NH',
'duration': 334,
},
- }
+ 'skip': 'Video gone, redirected to http://www.cbsnews.com/live/',
+ }, {
+ 'url': 'http://www.cbsnews.com/live/video/video-shows-intense-paragliding-accident/',
+ 'info_dict': {
+ 'id': 'video-shows-intense-paragliding-accident',
+ 'ext': 'flv',
+ 'title': 'Video Shows Intense Paragliding Accident',
+ },
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)
def _real_extract(self, url):
video_id = self._match_id(url)