Dictionary keys not sorted

Discuss Shareaza development as a user.
Forum rules
Home | Wiki | Rules

Dictionary keys not sorted

Postby ZinnKid » 02 Jan 2014 01:40

ZinnKid
 
Posts: 3
Joined: 02 Jan 2014 01:05

Re: Dictionary keys not sorted

Postby raspopov » 02 Jan 2014 08:33

If torrent file was modified its hash always changed regardless sorted it or not.
User avatar
raspopov
Project Admin
 
Posts: 945
Joined: 13 Jun 2009 12:30

Re: Dictionary keys not sorted

Postby ZinnKid » 03 Jan 2014 04:51

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.
ZinnKid
 
Posts: 3
Joined: 02 Jan 2014 01:05

Re: Dictionary keys not sorted

Postby raspopov » 03 Jan 2014 09:19

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.
User avatar
raspopov
Project Admin
 
Posts: 945
Joined: 13 Jun 2009 12:30

Re: Dictionary keys not sorted

Postby ZinnKid » 03 Jan 2014 17:55

That worked. The info dict wasn't modified when I uploaded it. Thanks.
ZinnKid
 
Posts: 3
Joined: 02 Jan 2014 01:05


Return to Bugs, Tasks, and Features Discussion

Who is online

Users browsing this forum: No registered users and 1 guest