remote-torrent-adder
remote-torrent-adder copied to clipboard
Directories in Transmission WebUI
It would be really great to be able to add a label to torrents added through this addon using the Transmission WebUI. I have this set up in Sonarr and it essentially puts torrents in a subdirectory named after the label. I'm not sure how torrent adding currently works but I'm pretty sure transmission RPC supports subdirectories. Thoughts?
Edit: I looked into the code and I see that RPC is exactly what's happening so all you'd need to do is add the "download-dir" key. Might be more complex if it expects a full path.
Edit again: I don't feel confident with my javascripting to recommend how to do this but for my own use I hardcoded the directory by changing line 33 of TransmissionWebUI.js from: message = JSON.stringify({"method": "torrent-add", "arguments": {"paused": "false", "filename": torrentdata}});
to: message = JSON.stringify({"method": "torrent-add", "arguments": {"paused": "false", "filename": torrentdata, "download-dir": "/path/to/download/directory"}});
Working great!
there's no labels in transmission or its rpc api, at least not that i can see.
directories would be a possibility, but i'd have to introduce the rutorrent-style selection dialog to transmission, which to be honest i'm not particularly keen on. that dialog was a concession i never should've made and has cost me way too much time, never having used it myself.
that being said, if someone really wants this and sends me a pull request for it, that'll most likely be accepted.