mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-03 22:37:07 -05:00 
			
		
		
		
	[iqiyi] Give error message for assertion failures
This commit is contained in:
		@@ -171,7 +171,10 @@ class IqiyiIE(InfoExtractor):
 | 
			
		||||
        enc_key = self.get_enc_key(swf_url, video_id)
 | 
			
		||||
 | 
			
		||||
        raw_data = self.get_raw_data(tvid, video_id, enc_key, _uuid)
 | 
			
		||||
        assert raw_data['code'] == 'A000000'
 | 
			
		||||
 | 
			
		||||
        if raw_data['code'] != 'A000000':
 | 
			
		||||
            raise ExtractorError('Unable to load data. Error code: ' + raw_data['code'])
 | 
			
		||||
 | 
			
		||||
        if not raw_data['data']['vp']['tkl']:
 | 
			
		||||
            raise ExtractorError('No support iQiqy VIP video')
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user