ktorrent magnet link issue

ktorrent will work with this magnet link which is from kickasstorrents website:

magnet:?xt=urn:btih:BFEFB51F4670D682E98382ADF81014638A25105A&dn=opensuse+13+2+dvd+x86+64+iso&tr=udp%3A%2F%2Fopen.demonii.com%3A1337%2Fannounce

It dosent work with this one though from theoldpiratebay:

magnet:?xt=urn:btih:bfefb51f4670d682e98382adf81014638a25105a&dn=openSUSE+13.2+DVD+x86_64.iso&xl=4678746112&dl=4678746112

Strangely enough qBittorrent will work fine with both. When I say it dosent work I mean it takes a long time to find *any *peers, 5-10 minutes plus, it never really gets started tbh. Any ideas what causes this? What makes one of those magnet links different from the other? Any settings I can change in ktorrent to fix this?

Can you please at least tell which version of openSUSE you use?
And I assume you use KDE because you use ktorrent, but mentioning such information never hurts.

Sure, its openSUSE 13.2 and yeah its KDE. Ktorrent is version 4.3.1

On Fri, 02 Jan 2015 15:56:01 +0000, maxp779 wrote:

> ktorrent will work with this magnet link which is from kickasstorrents
> website:
>
> magnet:?xt=urn:btih:BFEFB51F4670D682E98382ADF81014638A25105A&dn=opensuse
+13+2+dvd+x86+64+iso&tr=udp%3A%2F%2Fopen.demonii.com%3A1337%2Fannounce
>
>
>
>
>
>
> It dosent work with this one though from theoldpiratebay:
>
>
> magnet:?xt=urn:btih:bfefb51f4670d682e98382adf81014638a25105a&dn=openSUSE
+13.2+DVD+x86_64.iso&xl=4678746112&dl=4678746112
>
> Strangely enough -qBittorrent will work fine with both-. When I say it
> dosent work I mean it takes a long time to find -any -peers, 5-10
> minutes plus, it never really gets started tbh. Any ideas what causes
> this? What makes one of those magnet links different from the other? Any
> settings I can change in ktorrent to fix this?

Rather than downloading openSUSE ISOs from pirate websites, use the
official torrent files on download.opensuse.org. Those torrent files are
known to work, and are also known not to have been tampered with.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Yeah I know but the point is every other torrent client ive tried (transmission/qbittorrent/utorrent) can use both magnet links, ktorrent has trouble with one of them. What gives?

:slight_smile:
You didn’t post the exact error you’re seeing.
More than likely there is a supported format issue, I doubt the problem is the magnet technology.

One way to verify this is if as you say the torrent file can be downloaded with a different torrent client, open up the file in a text editor and compare it with some other torrent file which is no problem using either client.

It may be that ktorrent might actually be the better performing client in this case, particularly if you’re getting your torrent files from something like oldpiratebay.org which is only a demo of a very, very dead thepiratebay.

TSU

the reason I believe ktorrent doesn’t work with the

magnet:?xt=urn:btih:BFEFB51F4670D682E98382ADF81014638A25105A&dn=opensuse+13+2+dvd+x86+64+iso&tr=udp%3A%2F%2Fopen.demonii.com%3A1337%2Fannounce

is the re-encoding of the URI’s, insted of / the link uses **%2F, **instead of **: **it uses %3A
some webservers automatically encode URL’s , ktorrent expects real addresses not encoded ones, if you fix the magnet URI (replace %3A with : etc) it would work

I dont see an error, its just magnet links from that site dont start with ktorrent, as far as im aware theres no file to dissect with a magnet link? Torrents work fine with ktorrent.

This magnet link:

magnet:?xt=urn:btih:BFEFB51F4670D682E98382ADF81014638A25105A&dn=opensuse+13+2+dvd+x86+64+iso&tr=udp%3A%2F%2Fopen.demonii.com%3A1337%2Fannounce

[FONT=Verdana]Results in this: http://i.imgur.com/FAKPlxx.png

This magnet link:

[/FONT]

magnet:?xt=urn:btih:bfefb51f4670d682e98382adf81014638a25105a&dn=openSUSE+13.2+DVD+x86_64.iso&xl=4678746112&dl=4678746112

Results in this: http://i.imgur.com/mm7lXRq.png

Itll just sit there for ages before finding a single peer (it eventually finds a peer) I would be inclined to just blame the website but ive tried other magnet links and the same behavior happens, ktorrent effectively dosent work with them. qbittorrent on the other hand will work with all magnet links ive thrown at it, same with transmission. Both those links in particular work well with other torrent clients.

You quoted the magnet link that works though, its the other one that dosent work.

the torrent/magnet that doesn’t work does not have any trackers,
**magnet:?xt=urn:btih:bfefb51f4670d682e98382adf81014638a25105a&dn=openSUSE+13.2+DVD+x86_64.iso&xl=4678746112&dl=4678746112
**the magnet only has the file hash no trackers!
ktorrent sets dht to off by default, so eather edit the URI to include trackers or enable dht in ktorrent (it’s in settings)

a bugzilla report for this might be a good idea, I remember when I first started ktorrent with a tracker-less magnet I got no connections until I enabled DHT.
ktorrent setting DHT should be ON by default.

DHT was on. A notification shows up when you try to use ktorrent with a magnet link when DHT is disabled, I enabled it and still it would not work with magnet links from that particular site (maybe others, I havent tested other sites tbh).

I agree DHT should be on by default though.

that URI is fine it just doesn’t have trackers and if you don’t have other users in your swarm DHT needs time to start going (I really should read-up on dht), I’ll test those links and report back. It really doesn’t make any difference from what site you got the magnet (some sites do add default trackers and that seams to be the problem here no trackers)
A google search about that magnet’s hash will get you tons of sites, some will offer the magnet with extra trackers some will have it trackerless
https://www.google.com/search?q=bfefb51f4670d682e98382adf81014638a25105a

**I think you found a bug.
**
tested with a couple of different torrents
if there are no trackers defined in the magnet URI ktorrent doesn’t work, usually ktorrent gets the corresponding .torrent file from the bittorrent network and starts the up/down load, if there are no trackers ktorrent does noting, the simplest thing to do is add a general tracker
this magnet works
**magnet:?xt=urn:btih:bfefb51f4670d682e98382adf81014638a25105a&dn=openSUSE+13.2+DVD+x86_64.iso&xl=4678746112&dl=4678746112&tr=udp%3A%2F%2Fopen.demonii.com%3A1337%2Fannounce
**
this one does not
magnet:?xt=urn:btih:bfefb51f4670d682e98382adf81014638a25105a&dn=openSUSE+13.2+DVD+x86_64.iso&xl=4678746112&dl=4678746112

the difference is the lack of a tracker, unfortinetly ktorrent seams to have been somewhat abandoned, I’ve read a few pages on kde.org and a few users have been asking for some bug fixes.

Ah that’s a shame, ktorrent seems like a good client. qBittorrent it is then, I think its still actively developed.

May not be a real bug.

Every torrent client works a bit differently and this may simply what some might consider a slight defect, ie doesn’t work as well for this one feature. Does not necessarily mean that ktorrent is bad, because often a client will be superior doing something else.

And, it may simply have to do with nodes with the torrentfile in the areas ktorrent is searching. A different torrent client might be configured to do a magnet search differently and it might just work better for this one torrent.

Is why I’ve jumped around from one torrent client to another many, many times over the past 10 years and sometimes ran more than one simultaneously (but of course pointing to different file locations).

It’s probably why trackers haven’t disappeared completely, although they’re not required today(DHT and Peer Sharing are probably the leading alternatives) they still provide better performance.

TSU