1

How do I get the magnet links from Transmission?

I didn't realize that this information was even stored.

I'd like to use just regular Transmission, rather than remote. What I've tried:

thufir@dur:~$ 
thufir@dur:~$ transmission-remote -l -t 13 -i | grep magnet | sed -e "s/^ *Magnet: //"
[2019-08-19 20:21:45.080] transmission-remote:  (http://localhost:9091/transmission/rpc/) Couldn't connect to server
[2019-08-19 20:21:45.081] transmission-remote:  (http://localhost:9091/transmission/rpc/) Couldn't connect to server
thufir@dur:~$ 
thufir@dur:~$ transmission -l -t 13 -i | grep magnet | sed -e "s/^ *Magnet: //"
transmission: command not found
thufir@dur:~$ 
thufir@dur:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.10
Release:    18.10
Codename:   cosmic
thufir@dur:~$ 
Thufir
  • 4,551
  • 1
    I am struggling with the same problem. Have you got any solution yet? Its surely possible to scrape them from transmission web interface but I wonder if there is an easier way to do that – POMATu Jan 06 '20 at 20:07
  • for the time being I'm just going to swap hard drives, so no. Do please document your efforts. Sorry, very much a back-burner project. If you ask your own question, that's fine, but do let me know. Maybe unix/linux stack exchange? – Thufir Jan 07 '20 at 22:28

1 Answers1

1

With transmission-show --magnet

Call transmission-show with the --magnet option to get the magnet link:

transmission-show --magnet 8fd3fac2bcea8809ac837dba076c37801b56e03d.torrent

This produces a link like this:

magnet:?xt=urn:btih:8fd3fac2bcea8809ac837dba076c37801b56e03d&dn=FileNameOfTorrent

See this question to get the location of your .torrent files. Since I used transmission-daemon, mine were in /var/lib/transmission/.config/transmission-daemon/torrents/.