Is it possible to retrieve magnet link via transmission-remote?
11,310
Solution 1
May have been patched since the question was asked, but running
transmission-remote -l -t 13 -i | grep magnet
worked for me, got the magnet link for torrent number 13.
If you want only the link, you can sed
away the title:
transmission-remote -l -t 13 -i | grep magnet | sed -e "s/^ *Magnet: //"
You may need to add a parameter --auth <username>:<password>
for authentication.
Solution 2
This worked for me :
transmission-remote -a magnet:?xt=urn...[magnet_link_here]...
Author by
Septagram
Updated on September 18, 2022Comments
-
Septagram almost 2 years
I'm running torrents on the home server, and I talk to home server via the
transmission-remote
utility. I'd like to retrieve the magnet link for one of my torrents, however this seems to be impossible, as thetransmission-remote -t[torrent-id] -i
doesn't give me the link, and the manual also says nothing. Is there any way to get a magnet link? -
Septagram about 10 yearsIn my version of transmission it doesn't work, but it's outdated, so I'll have to just believe you ) Thanks for the solution )
-
Puggan Se about 10 yearsRunning 0.8.5 (from gentoo net-p2p/bitcoind-0.8.5:0)
-
Dorian over 2 yearsTo add a bunch of magnets from a.html page
Nokogiri::HTML(File.read("a.html")).css("a").map { |a| a["href"] }.sele ct { |href| href.start_with?("magnet") }.each { |href| system("transmission-remote", "-a", href) }