Magnet links creation with qBt - Hash and Trackers

Other platforms, generic questions.
Post Reply
longho

Magnet links creation with qBt - Hash and Trackers

Post 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
Dayman

Re: Magnet links creation with qBt - Hash and Trackers

Post 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.
Last edited by Dayman on Wed Nov 21, 2012 10:56 am, edited 1 time in total.
longho

Re: Magnet links creation with qBt - Hash and Trackers

Post 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
Dayman

Re: Magnet links creation with qBt - Hash and Trackers

Post 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
Last edited by Dayman on Wed Nov 21, 2012 11:27 am, edited 1 time in total.
longho

Re: Magnet links creation with qBt - Hash and Trackers

Post by longho »

Thank you so much Dayman!

Regards,
Lo
longho

Re: Magnet links creation with qBt - Hash and Trackers

Post 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
Dayman

Re: Magnet links creation with qBt - Hash and Trackers

Post by Dayman »

https://code.google.com/p/libtorrent/is ... 9&sort=-id
The second issue will be fixed in LT 0.16.6
longho

Re: Magnet links creation with qBt - Hash and Trackers

Post by longho »

Good news! Thanks Dayman ;)
Post Reply