mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
[Core] Fix saving torrent info metadata
* Unicode dict entry should be bytes.
This commit is contained in:
parent
e5e49f68ba
commit
19fdd2f88c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue