I am using the command-line torrent client rTorrent under Xenial Xerus and I would like to:
- Find and click on a magnet torrent link with Firefox
- Have the magnet link opened automatically in rTorrent and start downloading
I believe a script is needed to be called from within Firefox, but the writing of such a script has so far defeated me…
Best Answer
The problems usually lie with mime type and default handlers.
Firstly, have you changed Firefox's
about:config
settings? ie:and reset other options as per this Firefox deluge Q&A.
Have you set up rTorrent to watch any particular directory?
FILE: ~/.rtorrent.rc
Then it is a simple matter of "save as" into
$HOME/torrents/watch
.Change
$HOME/torrents/watch
to whatever torrents subfolder you use, or at least $HOME to /home/usernameCreate a file and add the following script:
FILE: maglink-rtorrent.sh
Don't forget to make it executable
This also offers the ability to download from terminal by:
Further awesome Service Tips and rTorrent setup options here.
Futher credits:
Update 2:
If not using rTorrent, but kTorrent or qBittorent, then this following is the way to get that running:
There's a further setting (from memory) for whether you require commandline.
For rTorrent though, this link is the FlexGet rTorrent Magnet URI Handler
Full information here.
Hope this helps.