Ticket #1074: hex_encoded_magnet_1_2.patch
File hex_encoded_magnet_1_2.patch, 725 bytes (added by , 15 years ago) |
---|
-
deluge/ui/gtkui/addtorrentdialog.py
226 226 new_row = None 227 227 228 228 for uri in uris: 229 info_hash = base64.b32decode(uri.split("&")[0][20:]).encode("hex") 229 info_hash = uri.split("&")[0][20:] 230 if len(info_hash) == 32: 231 #convert old style base32 encoded hash to hex encoded 232 info_hash = base64.b32decode(info_hash).encode("hex") 230 233 if info_hash in self.infos: 231 234 log.debug("Torrent already in list!") 232 235 continue