Page 1 of 1

Magnet links creation with qBt - Hash and Trackers

Posted: Wed Nov 21, 2012 9:33 am
by longho
Hi allĀ  ;)

I've two questions about the creation of magnet links inside qBittorrent (I'm using the Linux 3.0.6 version). To create a magnet link: right click on a listed torrent, then "copy magnet link". But:

1) qBittorrent modifies the hash in the magnet link. Why?
2) I want to include all the trackers added to the torrent. But the &tr= option is empty or include only one tracker. Why?

Thanks in advance,
Lo

Re: Magnet links creation with qBt - Hash and Trackers

Posted: Wed Nov 21, 2012 10:48 am
by Dayman
  1. Can you clarify?
  2. This looks like either deliberate or temporary behavior of libtorrent. The code only copies the first tracker in array.
I will ask about this on LT bugtracker.

Re: Magnet links creation with qBt - Hash and Trackers

Posted: Wed Nov 21, 2012 11:14 am
by longho
Hi Dayman,

For the first question:

I'm testing several bittorrent client on Ubuntu.
Taking Transmission (the default client), if my torrent hash is (i.e): 326e209ad9eb.... etc... when I create the magnet link, the program generates a link like this: magnet:?xt=urn:btih:326e209ad9eb.... etc...
The btih (BitTorrent Info Hash) is the same.

Taking qBittorrent, if my torrent hash is (i.e): 4cc67ef49580f3... etc... when I create the magnet link, the program generates a link like this: magnet:?xt=urn:btih:JTDH55EVQD... etc...

For the second question:

Transmission copies all the trackers of the torrent (even if I add trackers in a second time). qBittorrent only the first or nothing.

Kind regards,
Lo

Re: Magnet links creation with qBt - Hash and Trackers

Posted: Wed Nov 21, 2012 11:17 am
by Dayman
For the first one: it does not change hash in any way. It encodes it in base32 for compatibility.
Check 'magnet URI format' here:
http://www.bittorrent.org/beps/bep_0009.html

So this is standard compliant.

Second one is now reported here: https://code.google.com/p/libtorrent/is ... 9&sort=-id

Re: Magnet links creation with qBt - Hash and Trackers

Posted: Wed Nov 21, 2012 12:57 pm
by longho
Thank you so much Dayman!

Regards,
Lo

Re: Magnet links creation with qBt - Hash and Trackers

Posted: Fri Nov 23, 2012 2:42 pm
by longho
Another behaviour I noticed:

If I load a .torrent file and then I modify the trakers inside qBt client, the created magnet link uses only the first tracker of the .torrent file (not that i specified for first). In other words:

- first tracker of the .torrent file (i.e): udp://tracker.xxx.org:80/announce
- first tracker specified (by me) in the client (i.e): udp://tracker.yyy.org:80/announce

Magnet link: magnet:?xt=urn:btih:ABCDEFGHAILMNOPQR...&dn=example.zip&tr=udp%3a%2f%2ftracker.xxx.org%3a80%2fannounce

Regards,
Longho

Re: Magnet links creation with qBt - Hash and Trackers

Posted: Fri Nov 23, 2012 7:00 pm
by Dayman
https://code.google.com/p/libtorrent/is ... 9&sort=-id
The second issue will be fixed in LT 0.16.6

Re: Magnet links creation with qBt - Hash and Trackers

Posted: Sat Nov 24, 2012 10:35 am
by longho
Good news! Thanks Dayman ;)