aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-07-16 00:03:12 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-07-16 15:37:54 +0800
commitae7b8462032ef86d803162067f0dbbbd03fa49e4 (patch)
tree3044ab613d4a3f7a89e07adc1b090c374e62d101
parent21ba7d0981e04237ae4ca8690a6ead331b3a82d1 (diff)
[cbsnews] Update _TESTS of CBSNewsLiveVideoIE
-rw-r--r--youtube_dl/extractor/cbsnews.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/youtube_dl/extractor/cbsnews.py b/youtube_dl/extractor/cbsnews.py
index 387537e76..9328e3e20 100644
--- a/youtube_dl/extractor/cbsnews.py
+++ b/youtube_dl/extractor/cbsnews.py
@@ -26,6 +26,7 @@ class CBSNewsIE(CBSBaseIE):
# 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/',
@@ -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_-]+)'
- _TEST = {
+ _TESTS = [{
'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,
},
- }
+ '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)