Torrent creator should be smarter about setting tracker tiers

Bug #807599 reported by Unxed
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
qBittorrent
Confirmed
Wishlist
Unassigned

Bug Description

Adding several trackers (one per line, like in uTorrent) then creating torrents makes qBittorrent add them all to one field of announce-list, but it should instead form a structure as follows:

http://tracker.com/announce1
http://tracker.com/announce2

http://tracker2.com/announce1

=>

(('http://tracker.com/announce1','http://tracker.com/announce2'),('http://tracker2.com/announce1'))

So does uTorrent.

To see the bug you may create the same multitracker torrent in qBittorrent and uTorrent, upload both to torrenteditor.com and see the difference.

Revision history for this message
Unxed (unxed) wrote :

Another problem is that qBittorrent fails to understaind structure of multitracker torrents created by uTorrent. If you give qBT a .torrent with structure mentioned above, it will try to connect http://tracker.com/announce1 and http://tracker.com/announce2, and say "http://tracker2.com/announce1 not contacted yet". But it should instead connect http://tracker.com/announce1 and http://tracker2.com/announce1 at the same time, and if http://tracker.com/announce1 fails, then try http://tracker.com/announce2.

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Yes, this needs to be looked at. However, I'm on vacation right now so this will have to wait until I come back, unless someone else wants to take lead of this *HINT* :)

summary: - qBittorrent fails to create corrrct multitracker torrent
+ Torrent creator should be smarter about setting tracker tiers
Changed in qbittorrent:
importance: Undecided → Medium
milestone: none → 2.8.3
status: New → Confirmed
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Check the multi-tracker specification:
http://www.bittornado.com/docs/multitracker-spec.txt

It does not matter what uTorrent does, the specification says:

d['announce-list'] = [ [ tracker1, tracker2 ], [backup1] ]
  The first tier, consisting of tracker1 and tracker2, is shuffled.
  Both trackers 1 and 2 will be tried on each announce (though perhaps
  in varying order) before the client tries to reach backup1.

Also, I don't think making any guesses about the trackers tiers in the torrent creator is a good idea. I should instead add a way to define the tiers explicitly.

Changed in qbittorrent:
milestone: 2.8.3 → 2.9.0
importance: Medium → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.