mirror of
				https://github.com/ytdl-org/youtube-dl.git
				synced 2025-10-29 09:26:20 -07:00 
			
		
		
		
	Fix coding styple in YouKuIE.
This commit is contained in:
		| @@ -199,14 +199,13 @@ class YoukuIE(InfoExtractor): | |||||||
|         video_password = self._downloader.params.get('videopassword', None) |         video_password = self._downloader.params.get('videopassword', None) | ||||||
|  |  | ||||||
|         # request basic data |         # request basic data | ||||||
|  |         basic_data_url = 'http://v.youku.com/player/getPlayList/VideoIDS/%s' % video_id | ||||||
|         if video_password: |         if video_password: | ||||||
|             data1 = retrieve_data( |             basic_data_url = '%s?password=%s' % (basic_data_url, video_password) | ||||||
|                 'http://v.youku.com/player/getPlayList/VideoIDS/%s?password=%s' % (video_id, video_password), |  | ||||||
|                 'Downloading JSON metadata 1') |         data1 = retrieve_data( | ||||||
|         else: |             basic_data_url, | ||||||
|             data1 = retrieve_data( |             'Downloading JSON metadata 1') | ||||||
|                 'http://v.youku.com/player/getPlayList/VideoIDS/%s' % video_id, |  | ||||||
|                 'Downloading JSON metadata 1') |  | ||||||
|         data2 = retrieve_data( |         data2 = retrieve_data( | ||||||
|             'http://v.youku.com/player/getPlayList/VideoIDS/%s/Pf/4/ctype/12/ev/1' % video_id, |             'http://v.youku.com/player/getPlayList/VideoIDS/%s/Pf/4/ctype/12/ev/1' % video_id, | ||||||
|             'Downloading JSON metadata 2') |             'Downloading JSON metadata 2') | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user