Bug 303269 - Support for multiple trackers in magnet links
Summary: Support for multiple trackers in magnet links
Status: RESOLVED FIXED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Joris Guisson
URL: magnet:?xt=urn:btih:f0c3d663cf288640a...
Keywords:
: 303275 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-07-09 23:06 UTC by Arthur Bit-Monnot
Modified: 2021-03-02 17:08 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***