mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 08:37:07 -05:00 
			
		
		
		
	[npo] Capture and output error message
This commit is contained in:
		@@ -170,6 +170,10 @@ class NPOIE(NPOBaseIE):
 | 
			
		||||
            transform_source=strip_jsonp,
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
        error = metadata.get('error')
 | 
			
		||||
        if error:
 | 
			
		||||
            raise ExtractorError(error, expected=True)
 | 
			
		||||
 | 
			
		||||
        # For some videos actual video id (prid) is different (e.g. for
 | 
			
		||||
        # http://www.omroepwnl.nl/video/fragment/vandaag-de-dag-verkiezingen__POMS_WNL_853698
 | 
			
		||||
        # video id is POMS_WNL_853698 but prid is POW_00996502)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user