From 19fdd2f88c891e9848ca2f1f400b490d64e9b102 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Tue, 21 Mar 2017 12:02:25 +0000 Subject: [PATCH] [Core] Fix saving torrent info metadata * Unicode dict entry should be bytes. --- deluge/core/torrent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 6fbef9b99..dadec5b2f 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -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)