mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[cbsnews] Remove invalid tests. CBS Live videos gets deleted soon.
This commit is contained in:
		| @@ -70,7 +70,8 @@ class CBSNewsLiveVideoIE(InfoExtractor): | |||||||
|     IE_DESC = 'CBS News Live Videos' |     IE_DESC = 'CBS News Live Videos' | ||||||
|     _VALID_URL = r'https?://(?:www\.)?cbsnews\.com/live/video/(?P<id>[\da-z_-]+)' |     _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/', |         'url': 'http://www.cbsnews.com/live/video/clinton-sanders-prepare-to-face-off-in-nh/', | ||||||
|         'info_dict': { |         'info_dict': { | ||||||
|             'id': 'clinton-sanders-prepare-to-face-off-in-nh', |             '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', |             'title': 'Clinton, Sanders Prepare To Face Off In NH', | ||||||
|             'duration': 334, |             'duration': 334, | ||||||
|         }, |         }, | ||||||
|         'skip': 'Video gone, redirected to http://www.cbsnews.com/live/', |         'skip': 'Video gone', | ||||||
|     }, { |     } | ||||||
|         '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): |     def _real_extract(self, url): | ||||||
|         video_id = self._match_id(url) |         video_id = self._match_id(url) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Yen Chi Hsuan
					Yen Chi Hsuan