mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 03:55:43 +00:00
[Core] Fix saving torrent info metadata
* Unicode dict entry should be bytes.
This commit is contained in:
parent
e5e49f68ba
commit
19fdd2f88c
@ -1193,7 +1193,7 @@ class Torrent(object):
|
||||
self.set_file_priorities([])
|
||||
if filedump is None:
|
||||
metadata = lt.bdecode(self.torrent_info.metadata())
|
||||
torrent_file = {'info': metadata}
|
||||
torrent_file = {b'info': metadata}
|
||||
filedump = lt.bencode(torrent_file)
|
||||
write_file(filepath, filedump)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user