aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/InfoExtractors.py
diff options
context:
space:
mode:
authordongmao zhang <deanraccoon@gmail.com>2012-08-09 03:14:02 +0800
committerdongmao zhang <deanraccoon@gmail.com>2012-08-09 03:14:02 +0800
commit7733d455c8b5444395fa3ca0b198bbbb10ac5058 (patch)
tree20976d7201382861ce4cf25a3fa47033d7285a3b /youtube_dl/InfoExtractors.py
parent0a98b09bc2d0553f0f5bd44c26b468e55a163d07 (diff)
fix 0a->0A bug
Diffstat (limited to 'youtube_dl/InfoExtractors.py')
-rw-r--r--youtube_dl/InfoExtractors.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py
index 00953a254..bc26f2f30 100644
--- 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):
- temp_fileid = '%s%02x%s' % (fileid[0:8], index, fileid[10:])
- download_url = 'http://f.youku.com/player/getFlvPath/sid/%s_%02x/st/flv/fileid/%s?k=%s' % (sid, index, temp_fileid, key)
+ temp_fileid = '%s%02X%s' % (fileid[0:8], index, fileid[10:])
+ download_url = 'http://f.youku.com/player/getFlvPath/sid/%s_%02X/st/flv/fileid/%s?k=%s' % (sid, index, temp_fileid, key)
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