mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[npr] Make SMIL extraction non-fatal (#2099)
Closes #1934 Authored by: r5d
This commit is contained in:
		| @@ -2332,7 +2332,7 @@ class InfoExtractor(object): | ||||
|  | ||||
|         if smil is False: | ||||
|             assert not fatal | ||||
|             return [] | ||||
|             return [], {} | ||||
|  | ||||
|         namespace = self._parse_smil_namespace(smil) | ||||
|  | ||||
|   | ||||
| @@ -91,7 +91,8 @@ class NprIE(InfoExtractor): | ||||
|                     elif format_id == 'smil': | ||||
|                         smil_formats = self._extract_smil_formats( | ||||
|                             format_url, media_id, transform_source=lambda s: s.replace( | ||||
|                                 'rtmp://flash.npr.org/ondemand/', 'https://ondemand.npr.org/')) | ||||
|                                 'rtmp://flash.npr.org/ondemand/', 'https://ondemand.npr.org/'), | ||||
|                             fatal=False) | ||||
|                         self._check_formats(smil_formats, media_id) | ||||
|                         formats.extend(smil_formats) | ||||
|                     else: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 siddharth
					siddharth