Fix not using the encoding used in the torrent file to decode some strings

This commit is contained in:
Andrew Resch 2009-05-25 02:27:33 +00:00
parent 5e40f36682
commit 1505b1704b

View file

@ -100,7 +100,7 @@ class TorrentInfo(object):
for f in self.__m_metadata["info"]["files"]:
self.__m_files.append({
'path': decode_string(os.path.join(prefix, decode_string(os.path.join(*f["path"])))),
'path': decode_string(os.path.join(prefix, decode_string(os.path.join(*f["path"]), self.encoding)), self.encoding),
'size': f["length"],
'download': True
})