#2227: can't add a specific torrent file
---------------------+------------------------------------------------------
 Reporter:  kfirufk  |       Owner:       
     Type:  bug      |      Status:  new  
 Priority:  minor    |   Milestone:  1.3.6
Component:  core     |     Version:  1.3.5
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by Cas):

 {{{
 #!diff

 diff --git a/deluge/ui/common.py b/deluge/ui/common.py
 index 08504be..59ae5fa 100644
 --- a/deluge/ui/common.py
 +++ b/deluge/ui/common.py
 @@ -104,8 +104,11 @@ def __init__(self, filename, filetree=1):
                  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, {})



 }}}

-- 
Ticket URL: <http://dev.deluge-torrent.org/ticket/2227#comment:2>
Deluge <http://deluge-torrent.org/>
Deluge project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-dev?hl=en.

Reply via email to