fix upload
This commit is contained in:
parent
13defd3cc3
commit
e67f084673
1 changed files with 1 additions and 1 deletions
|
@ -994,7 +994,7 @@ class API(ox.API):
|
|||
if os.path.exists(i['media']):
|
||||
size = ox.format_bytes(os.path.getsize(i['media']))
|
||||
name = os.path.basename(filename)
|
||||
print(u"uploading %s of %s (%s)" % (profile, name, size)).encode('utf-8')
|
||||
print((u"uploading %s of %s (%s)" % (profile, name, size)).encode('utf-8'))
|
||||
url = self.url + 'upload/?profile=%s&id=%s' % (profile, i['oshash'])
|
||||
if not self.upload_chunks(url, i['media'], data):
|
||||
if DEBUG:
|
||||
|
|
Loading…
Reference in a new issue