[qcineoob] download filename encoding
This commit is contained in:
parent
2a49b6e5bf
commit
7a6132cbca
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue