[cbsnews] Remove invalid tests. CBS Live videos gets deleted soon.
authorYen Chi Hsuan <yan12125@gmail.com>
Mon, 15 Aug 2016 12:29:22 +0000 (20:29 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Mon, 15 Aug 2016 12:29:22 +0000 (20:29 +0800)
youtube_dl/extractor/cbsnews.py

index 9328e3e2070b434d8e3e3f98f4f13afddc95b3a7..9d3b75526395ee946ef660c14e0629019e10c1e2 100644 (file)
@@ -70,7 +70,8 @@ class CBSNewsLiveVideoIE(InfoExtractor):
     IE_DESC = 'CBS News Live Videos'
     _VALID_URL = r'https?://(?:www\.)?cbsnews\.com/live/video/(?P<id>[\da-z_-]+)'
 
-    _TESTS = [{
+    # Live videos get deleted soon. See http://www.cbsnews.com/live/ for the latest examples
+    _TEST = {
         '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',
@@ -78,15 +79,8 @@ 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',
-        },
-    }]
+        'skip': 'Video gone',
+    }
 
     def _real_extract(self, url):
         video_id = self._match_id(url)