mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	Fix YoukuIE in Python3 (and in general)
This commit is contained in:
		| @@ -3372,15 +3372,8 @@ class YoukuIE(InfoExtractor): | ||||
|  | ||||
|  | ||||
|             fileid = config['data'][0]['streamfileids'][format] | ||||
|             seg_number = len(config['data'][0]['segs'][format]) | ||||
|  | ||||
|             keys=[] | ||||
|             for i in xrange(seg_number): | ||||
|                 keys.append(config['data'][0]['segs'][format][i]['k']) | ||||
|  | ||||
|             #TODO check error | ||||
|             #youku only could be viewed from mainland china | ||||
|         except: | ||||
|             keys = [s['k'] for s in config['data'][0]['segs'][format]] | ||||
|         except (ValueError, KeyError): | ||||
|             self._downloader.trouble(u'ERROR: unable to extract info section') | ||||
|             return | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister