summaryrefslogtreecommitdiffstats
path: root/deluge/core/torrent.py
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2020-06-14 19:04:29 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2021-03-24 10:26:08 +0000
commit3ec23ad96bfa205c8ae23b662c6da153efbfed3a (patch)
tree880c8efcea5253b330b443f3d99e7118a9da11ca /deluge/core/torrent.py
parentdcd3918f3626403e32f00993d0a6e7014be3cbf3 (diff)
downloaddeluge-3ec23ad96bfa205c8ae23b662c6da153efbfed3a.tar.gz
deluge-3ec23ad96bfa205c8ae23b662c6da153efbfed3a.tar.bz2
deluge-3ec23ad96bfa205c8ae23b662c6da153efbfed3a.zip
[#3388|WebUI] Fix md5sums in torrent files breaking file listing
Torrents containing md5sum optional hashes are not being decoded and so causes errors in the json_api when the TorrentInfo is returned: Object of type bytes is not JSON serializable Fixed by removing all optional hashes from the paths returned from TorrentInfo and only including the required path keys. The optional hashes are unused by Deluge so simplify by removing. Fixed Windows path issue in TorrentInfo by ensuring conversion to posix paths. Refs: http://wiki.bitcomet.com/inside_bitcomet http://wiki.depthstrike.com/index.php/P2P:Protocol:Specifications:Optional_Hashes https://wiki.theory.org/index.php/BitTorrentSpecification
Diffstat (limited to 'deluge/core/torrent.py')
0 files changed, 0 insertions, 0 deletions