Opened 12 years ago
Closed 12 years ago
#2227 closed bug (Fixed)
can't add a specific torrent file
Reported by: | kfirufk | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.3.6 |
Component: | Core | Version: | 1.3.5 |
Keywords: | Cc: |
Description
Hello. using the deluge web ui, when I press on + and then on 'file' to add a torrent file. a specific one just shows the name of the torrent without showing the actual content and I can't press 'add' to add this file.
when I run deluge on debug, the log file shows:
'utf8' codec can't decode bye 0xc7 in position 1: invalid continuation byte.
full output at: http://pastebin.com/kwPeX5jr
Attachments (1)
Change History (4)
by , 12 years ago
Attachment: | [audionews.org].f85d935.torrent added |
---|
comment:1 by , 12 years ago
Component: | other → core |
---|---|
Milestone: | Future → 1.3.6 |
Version: | other (please specify) → 1.3.5 |
The torrent contains 'sha1' and 'ed2k' digest entries which cause the decode issue.
comment:2 by , 12 years ago
-
deluge/ui/common.py
diff --git a/deluge/ui/common.py b/deluge/ui/common.py index 08504be..59ae5fa 100644
a b def __init__(self, filename, filetree=1): 104 104 else: 105 105 path = decode_string(os.path.join(prefix, decode_string(os.path.join(*f["path"]), self.encoding)), self.encoding) 106 106 f["index"] = index 107 if "sha1" in f and len(f["sha1"]) == 20: 108 f["sha1"] = f["sha1"].encode('hex') 109 if "ed2k" in f and len(f["ed2k"]) == 16: 110 f["ed2k"] = f["ed2k"].encode('hex') 107 111 paths[path] = f 108 109 112 dirname = os.path.dirname(path) 110 113 while dirname: 111 114 dirinfo = dirs.setdefault(dirname, {})
Note:
See TracTickets
for help on using tickets.
the torrent that causes this error