mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 22:21:17 +01:00
Fix coding styple in YouKuIE.
This commit is contained in:
parent
33eae08f04
commit
cb3d2eb9e9
|
@ -199,13 +199,12 @@ def retrieve_data(req_url, note):
|
|||
video_password = self._downloader.params.get('videopassword', None)
|
||||
|
||||
# request basic data
|
||||
basic_data_url = 'http://v.youku.com/player/getPlayList/VideoIDS/%s' % video_id
|
||||
if video_password:
|
||||
basic_data_url = '%s?password=%s' % (basic_data_url, video_password)
|
||||
|
||||
data1 = retrieve_data(
|
||||
'http://v.youku.com/player/getPlayList/VideoIDS/%s?password=%s' % (video_id, video_password),
|
||||
'Downloading JSON metadata 1')
|
||||
else:
|
||||
data1 = retrieve_data(
|
||||
'http://v.youku.com/player/getPlayList/VideoIDS/%s' % video_id,
|
||||
basic_data_url,
|
||||
'Downloading JSON metadata 1')
|
||||
data2 = retrieve_data(
|
||||
'http://v.youku.com/player/getPlayList/VideoIDS/%s/Pf/4/ctype/12/ev/1' % video_id,
|
||||
|
|
Loading…
Reference in New Issue
Block a user