Merge pull request #5 from carlesso/master
Fix file name encoding problem.
This commit is contained in:
commit
8d2dbb597b
1 changed files with 2 additions and 2 deletions
2
mega.py
2
mega.py
|
@ -240,7 +240,7 @@ class Mega(object):
|
||||||
attribs = decrypt_attr(attribs, k)
|
attribs = decrypt_attr(attribs, k)
|
||||||
file_name = attribs['n']
|
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_size,
|
||||||
file_url)
|
file_url)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue