Page 1 of 1

Dictionary keys not sorted

PostPosted: 02 Jan 2014 01:40
by ZinnKid

Re: Dictionary keys not sorted

PostPosted: 02 Jan 2014 08:33
by raspopov
If torrent file was modified its hash always changed regardless sorted it or not.

Re: Dictionary keys not sorted

PostPosted: 03 Jan 2014 04:51
by ZinnKid
The hash will only change if the info dict is modified. Most torrent sites usually add their own trackers and comments to the torrent after you upload them. This shouldn't change anything but since shareaza isn't following the spec it gets "sorted" by the server when it saves it. Uploading torrents to trackers/indexers shouldn't change the hash but with ones produced by shareaza all the ones I tried did.

Re: Dictionary keys not sorted

PostPosted: 03 Jan 2014 09:19
by raspopov
That make sense. Fixed in r9342.

Although all trackers I used always rewrites "info" key by adding "private" or "source" sub-keys so torrent hash changed and tracker admins were forced to notify users that torrent file must be re-downloaded after upload. :?

Test new version please: TorrentWizard 1.3.0.0.

Re: Dictionary keys not sorted

PostPosted: 03 Jan 2014 17:55
by ZinnKid
That worked. The info dict wasn't modified when I uploaded it. Thanks.