[qcineoob] download filename encoding

This commit is contained in:
Julien Veyssier 2013-03-30 20:51:13 +01:00 committed by Romain Bignon
commit 7a6132cbca

View file

@ -84,7 +84,7 @@ class Torrent(QFrame):
dest = result[0]
data = self.backend.get_torrent_file(self.torrent.id)
try:
with open(dest, 'w') as f:
with open(unicode(dest), 'w') as f:
f.write(data)
except IOError, e:
print >>sys.stderr, 'Unable to write .torrent in "%s": %s' % (dest, e)