diff --git a/deluge/ui/common.py b/deluge/ui/common.py index 08504be32..59ae5fa08 100644 --- a/deluge/ui/common.py +++ b/deluge/ui/common.py @@ -104,8 +104,11 @@ class TorrentInfo(object): else: path = decode_string(os.path.join(prefix, decode_string(os.path.join(*f["path"]), self.encoding)), self.encoding) f["index"] = index + if "sha1" in f and len(f["sha1"]) == 20: + f["sha1"] = f["sha1"].encode('hex') + if "ed2k" in f and len(f["ed2k"]) == 16: + f["ed2k"] = f["ed2k"].encode('hex') paths[path] = f - dirname = os.path.dirname(path) while dirname: dirinfo = dirs.setdefault(dirname, {})