Bug 303269

Summary: Support for multiple trackers in magnet links
Product: [Applications] ktorrent Reporter: Arthur Bit-Monnot <athanare>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED FIXED    
Severity: wishlist CC: mbackman3, services, travneff
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
URL: magnet:?xt=urn:btih:f0c3d663cf288640af145349e1e242ec750a0342&dn=Debian+6.0.4+DVD+1+64-bit&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.istole.it%3A6969&tr=udp%3A%2F%2Ftracker.ccc.de%3A80
Latest Commit: Version Fixed In:

Description Arthur Bit-Monnot 2012-07-09 23:06:32 UTC
Some torrent site now use multiple trackers inside a unique magnet link. This is especially the case with the pirate bay.

When opening those links with ktorrent. Only the first tracker gets added to the torrent list.
This is pretty annoying since (on TPB), the first tracker is awfully slow and often times out.

Mutiple trackers come as several "tr" parameters in magnet's URI, KTorrent should be aware that there might be more than one.

Here is an example of magnet with mutiple trackers (but pretty much any torrent on TPB will have that): 

magnet:?xt=urn:btih:f0c3d663cf288640af145349e1e242ec750a0342&dn=Debian+6.0.4+DVD+1+64-bit&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.istole.it%3A6969&tr=udp%3A%2F%2Ftracker.ccc.de%3A80

Reproducible: Always

Steps to Reproduce:
1. Click on a magnet link with multiple trackers
2. Go to trackers view :
Actual Results:  
 there is only one tracker present : the first one

Expected Results:  
There should be the four trackers
Comment 1 Joris Guisson 2012-07-11 18:17:08 UTC
Git commit 5107e4b7a050d7533f44801f5f5f5694203fd3b5 by Joris Guisson.
Committed on 11/07/2012 at 20:16.
Pushed by guisson into branch 'master'.

Make sure all trackers are used of a magnet link
Related: bug 302997

M  +1    -0    ChangeLog
M  +78   -46   src/magnet/magnetlink.cpp

http://commits.kde.org/libktorrent/5107e4b7a050d7533f44801f5f5f5694203fd3b5
Comment 2 Joris Guisson 2012-07-11 18:38:30 UTC
*** Bug 303275 has been marked as a duplicate of this bug. ***