fix upload

This commit is contained in:
j 2016-07-01 13:44:50 +02:00
parent 13defd3cc3
commit e67f084673

View file

@ -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: