mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[cbslocal] Adapt to SendtoNewsIE
This commit is contained in:
		| @@ -41,13 +41,8 @@ class CBSLocalIE(AnvatoIE): | |||||||
|         'url': 'http://cleveland.cbslocal.com/2016/05/16/indians-score-season-high-15-runs-in-blowout-win-over-reds-rapid-reaction/', |         'url': 'http://cleveland.cbslocal.com/2016/05/16/indians-score-season-high-15-runs-in-blowout-win-over-reds-rapid-reaction/', | ||||||
|         'info_dict': { |         'info_dict': { | ||||||
|             'id': 'GxfCe0Zo7D-175909-5588', |             'id': 'GxfCe0Zo7D-175909-5588', | ||||||
|             'ext': 'mp4', |  | ||||||
|             'title': 'Recap: CLE 15, CIN 6', |  | ||||||
|             'description': '5/16/16: Indians\' bats explode for 15 runs in a win', |  | ||||||
|             'upload_date': '20160516', |  | ||||||
|             'timestamp': 1463433840, |  | ||||||
|             'duration': 49, |  | ||||||
|         }, |         }, | ||||||
|  |         'playlist_count': 9, | ||||||
|         'params': { |         'params': { | ||||||
|             # m3u8 download |             # m3u8 download | ||||||
|             'skip_download': True, |             'skip_download': True, | ||||||
| @@ -60,11 +55,10 @@ class CBSLocalIE(AnvatoIE): | |||||||
|  |  | ||||||
|         sendtonews_url = SendtoNewsIE._extract_url(webpage) |         sendtonews_url = SendtoNewsIE._extract_url(webpage) | ||||||
|         if sendtonews_url: |         if sendtonews_url: | ||||||
|             info_dict = { |             return self.url_result( | ||||||
|                 '_type': 'url_transparent', |                 compat_urlparse.urljoin(url, sendtonews_url), | ||||||
|                 'url': compat_urlparse.urljoin(url, sendtonews_url), |                 ie=SendtoNewsIE.ie_key()) | ||||||
|             } |  | ||||||
|         else: |  | ||||||
|         info_dict = self._extract_anvato_videos(webpage, display_id) |         info_dict = self._extract_anvato_videos(webpage, display_id) | ||||||
|  |  | ||||||
|         time_str = self._html_search_regex( |         time_str = self._html_search_regex( | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Yen Chi Hsuan
					Yen Chi Hsuan