Merge pull request #5 from carlesso/master

Fix file name encoding problem.
This commit is contained in:
Richard O'Dwyer 2013-02-13 06:21:09 -08:00
commit 8d2dbb597b

View file

@ -240,7 +240,7 @@ class Mega(object):
attribs = decrypt_attr(attribs, k)
file_name = attribs['n']
print "downloading {0} (size: {1}), url = {2}".format(attribs['n'],
print "downloading {0} (size: {1}), url = {2}".format(attribs['n'].encode("utf8"),
file_size,
file_url)
@ -379,4 +379,4 @@ class Mega(object):
elif file['t'] == 4:
self.trashbin_id = file['h']
file['a'] = {'n': 'Rubbish Bin'}
return file
return file