projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0a98b09
)
fix 0a->0A bug
author
dongmao zhang
<deanraccoon@gmail.com>
Wed, 8 Aug 2012 19:14:02 +0000
(
03:14
+0800)
committer
dongmao zhang
<deanraccoon@gmail.com>
Wed, 8 Aug 2012 19:14:02 +0000
(
03:14
+0800)
youtube_dl/InfoExtractors.py
patch
|
blob
|
history
diff --git
a/youtube_dl/InfoExtractors.py
b/youtube_dl/InfoExtractors.py
index 00953a2546c57222c8cbadafcae06d8fc17d7df5..bc26f2f30c0816be06c6a0a00b66254db5dbdbad 100644
(file)
--- a/
youtube_dl/InfoExtractors.py
+++ b/
youtube_dl/InfoExtractors.py
@@
-3074,11
+3074,11
@@
class YoukuIE(InfoExtractor):
#fileid[7:9] should be changed
for index, key in enumerate(keys):
#fileid[7:9] should be changed
for index, key in enumerate(keys):
- temp_fileid = '%s%02
x
%s' % (fileid[0:8], index, fileid[10:])
- download_url = 'http://f.youku.com/player/getFlvPath/sid/%s_%02
x
/st/flv/fileid/%s?k=%s' % (sid, index, temp_fileid, key)
+ temp_fileid = '%s%02
X
%s' % (fileid[0:8], index, fileid[10:])
+ download_url = 'http://f.youku.com/player/getFlvPath/sid/%s_%02
X
/st/flv/fileid/%s?k=%s' % (sid, index, temp_fileid, key)
print download_url
info = {
print download_url
info = {
- 'id': '%s_part%
02x
' % (video_id, index),
+ 'id': '%s_part%
d
' % (video_id, index),
'url': download_url,
'uploader': None,
'title': video_title
'url': download_url,
'uploader': None,
'title': video_title