From 7a6132cbcae8a6b7b215af19b56b99c0ad2d5d19 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Sat, 30 Mar 2013 20:51:13 +0100 Subject: [PATCH] [qcineoob] download filename encoding --- weboob/applications/qcineoob/torrent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weboob/applications/qcineoob/torrent.py b/weboob/applications/qcineoob/torrent.py index b84ca9ca..5dd91f72 100644 --- a/weboob/applications/qcineoob/torrent.py +++ b/weboob/applications/qcineoob/torrent.py @@ -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)