projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
33eae08
)
Fix coding styple in YouKuIE.
author
PSJay
<psjay.peng@gmail.com>
Tue, 1 Sep 2015 03:07:47 +0000
(11:07 +0800)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 1 Sep 2015 16:25:03 +0000
(22:25 +0600)
youtube_dl/extractor/youku.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youku.py
b/youtube_dl/extractor/youku.py
index 220f84221817b7da9925273fb90620d300d8f17f..6219bc1bb915ca17117c34fe7e7c98e915e2cfee 100644
(file)
--- a/
youtube_dl/extractor/youku.py
+++ b/
youtube_dl/extractor/youku.py
@@
-199,14
+199,13
@@
class YoukuIE(InfoExtractor):
video_password = self._downloader.params.get('videopassword', None)
# request basic data
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:
if 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,
- 'Downloading JSON metadata 1')
+ basic_data_url = '%s?password=%s' % (basic_data_url, video_password)
+
+ data1 = retrieve_data(
+ 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,
'Downloading JSON metadata 2')
data2 = retrieve_data(
'http://v.youku.com/player/getPlayList/VideoIDS/%s/Pf/4/ctype/12/ev/1' % video_id,
'Downloading JSON metadata 2')