rutorrent support Magnet Links?

peshua19

Member
May 25, 2018
897
0
16
Hello All - first post here. I'm really loving rutorrent. It's exactly what I think a bitorrent client (or frontend) should be!

I have rtorrent compiled and setup to support magnet links thanks to some patches I found here: http://www.howtoforge.com/how-to-compile-rtorrent-from-svn-in-ubuntu-9.10-karmic-koala-debian-5-lenny-with-magnet-link-support

I can add magnet links directly into rtorrent by pressing Backspace or Enter just like you can with .torrent files however it doesn't appear that rutorrent will accept magnet links and pass them into rtorrent. I realize that magnet links aren't really preferred but sometimes they are unavoidable and I'd really like to be able to add them via rutorrent if possible.

Does anyone have any ideas on how / if this might be possible?

Any help is greatly appreciated!

Thanks,
 

lisas4567

Member
May 25, 2018
773
0
16
this should be possible via a plugin.

best bet is to do one of the following:


1) write a plugin to support this feature

2) pay someone to write a plugin to support this feature

3) find someone willing to do this for free


your best bet is option 1 or 2. For option 3 you can open a ticket on the main page and it is possible it may be added but highly unlikely as it is a very specialized thing and very few people need/want this.

it doesn't hurt to ask though.


This is something that will be much more likely once rtorrent supports it WITHOUT a patch so honestly, your BEST bet is to ask for this support in rtorrent FIRST. When this happens, i'm sure it will naturally find its way into rutorrent.
 

peshua19

Member
May 25, 2018
897
0
16
Thanks for the response wonslung! You have pretty much confirmed my suspicions.

I'm certain it would not be all that difficult for an experienced programmer to add this functionality to rutorrent but I certainly don't fit that description and will therefore have to rely on someone with far greater skills than I, and as you have alluded to, that boils down to motivation.

I'm hopeful that the rtorrent magnet link patch (linked above) finds it's way into mainline rtorrent as magnet links are gaining popularity. Once rtorrent supports them then I'm sure it's only a matter of time before someone with the skills to implement support for them in rutorrent does so.

I don't really have the monetary resources to offer up any additional motivation but if someone with mad programming skills was able to add magnet link support to rutorrent you would certainly have my respect and gratitude. (which is worth slightly less than a hill of beans...)
 

peshua19

Member
May 25, 2018
897
0
16
I've found a workaround for adding magnet links to rutorrent for the time being. A Firefox addon has been created by "kryojenik" in response to the patches to rtorrent supporting magnet links that appears to wrap the magnet link hash in a ".torrent file" which can then be passed to rutorrent.

The ticket regarding adding magnet link support to rtorrent can be found here: http://libtorrent.rakshasa.no/ticket/955

The direct link to the Firefox addon can be found here: https://addons.mozilla.org/en-US/firefox/addon/59335

Example:

The following magnet link: magnet:?xt=urn:btih:pLCY26K5PBYA6WBP4XRZU6K2L3GUMX2F (Kubuntu 9 04 (i386) Cd torrent)

Produces the following file (using the add-on): meta-PLCY26K5PBYA6WBP4XRZU6K2L3GUMX2F.torrent

with the following contents: d10:magnet-uri52:magnet:?xt=urn:btih:pLCY26K5PBYA6WBP4XRZU6K2L3GUMX2Fe


This looks pretty straight forward but as I stated earlier I'm not a programmer so I don't fully understand why / how this works but I can confirm that it does.
 

peshua19

Member
May 25, 2018
897
0
16
Well it looks like my workaround may be short lived. The Firefox plugin I linked in my previous post has not been updated for Firefox 3.6. I've sent an e-mail to the address listed on the plugin page but received no response.

Consequently I'm still running Firefox 3.5.8 which will work for the short term but I'm in need of a long term solution. Unfortunately I specialized in hardware and have very little coding skills. Looking at the aforementioned Firefox plugin it doesn't look like it is all that complicated to convert a magnet link into a .torrent format the rutorrent can use therefore I don't believe this would be all that difficult for someone with the proper skillset.

That said, I'm not willing to "put my money where my mouth is" and offer up a small amount of cash for a workable long term solution to my problem of importing magnet links into rtorrent via rutorrent.

Based on Wonslungs "Bounty" concept I'm offering $20 payed via PayPal for a working long term solution (preferrably an rutorrent plugin that accepts magnet links).
 

saroos1

Member
May 25, 2018
718
0
16
For now if you want to try the Fx-Plugin with Fx 3.6 you can open up the .xpi with a packer-app as e.g. 7-zip (i suggest this because you can modify a file via right-click menu and after editing/save in an external app it will auto-update it within the archive). It is just an archive.
Modify the install.rdf file in a text-editor.
Change
Code:
<em:maxVersion>3.5.*</em:maxVersion>to
<em:maxVersion>3.6.*</em:maxVersion>
 

randac56

Member
May 25, 2018
915
0
16
Unfortunately it looks like someone pissed off rakshasa so who knows where magnet link support stands now...
The last SVN release of rtorrent already contain this patch. Unfortunately, it contain many ather things, like a lot of changes in xmlrpc API. I working under that now.
 

lisas4567

Member
May 25, 2018
773
0
16
On my system - is not good. It freezes periodically.
Thanks for the heads up! I built and installed 1148 in a VM over lunch and was able to add a magnet link with no problems. I can't push it hard in the VM though as I'll fill the tiny little virtual disc. 1122 with the patches is working like a champ on my production box so I'll leave well enough alone for now.

Let me know if you find a newer SVN build that appears stable and I'll give it a go.
 

randac56

Member
May 25, 2018
915
0
16
Let me know if you find a newer SVN build that appears stable and I'll give it a go.
You can try it now. Support for magnet links was added in ruTorrnet svn, r856. Simple put magnet link to field "Torrent url" in "Add Torrent" dialog.
 

lisas4567

Member
May 25, 2018
773
0
16
You can try it now. Support for magnet links was added in ruTorrnet svn, r856. Simple put magnet link to field "Torrent url" in "Add Torrent" dialog.
Loaded up the latest SVN tonight - worked great!!!

PM me your PayPal address or should I just use the Donate link on the site?