remote-torrent-adder icon indicating copy to clipboard operation
remote-torrent-adder copied to clipboard

Directories in Transmission WebUI

Open MyAdler opened this issue 8 years ago • 1 comments

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!

MyAdler avatar Sep 29 '16 20:09 MyAdler

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.

bogenpirat avatar Dec 17 '16 12:12 bogenpirat