Closed GoogleCodeExporter closed 9 years ago
Sorry, you'll have to be a bit more specific. Do you want to move it from one
folder to another on the server (guess not, as move does that), copy it to your
local machine and then delete it afterwards, or something else?
Original comment by a...@eth0.org.uk
on 16 Nov 2011 at 7:36
I want move the content of one torrent to another folder (in remote server) and
that Transmission continues to serve it.
Original comment by si...@simonbcn.net
on 16 Nov 2011 at 10:50
You can do this with the move feature.
Right click on a torrent -> move, or the torrent menu -> move, then select a
folder or type one.
Original comment by a...@eth0.org.uk
on 16 Nov 2011 at 10:54
I know that, but it's more comfortable to me to create this action.
The destination folder is always the same.
Can I do this with Actions?
What is the syntax of these actions?
Original comment by si...@simonbcn.net
on 16 Nov 2011 at 11:01
Ah, ok, now I see.
You can call transmission-remote (the command line client) to do this.
Something like this (untested):
transmission-remote %{hostname}:%{port} --move /new/path -t %{id} -n
%{username}:%{password}
Original comment by a...@eth0.org.uk
on 16 Nov 2011 at 11:18
Was curious so I tested it, seems the arguments need to be in a different
order. This works:
transmission-remote %{hostname}:%{port} -n %{username}:%{password} -t %{id}
--move /home/ajf88/test
Original comment by a...@eth0.org.uk
on 16 Nov 2011 at 11:22
Yes, it works, thanks.
Is there any documentation about this?
Original comment by si...@simonbcn.net
on 16 Nov 2011 at 11:53
Can I use the labels in this command? And the default download folder? How?
Original comment by si...@simonbcn.net
on 17 Nov 2011 at 11:27
Neither could be used. Allowing the use of session variables was a trivial
change, so I just made it.
https://trac.transmissionbt.com/browser/trunk/extras/rpc-spec.txt
So you can use %{download-dir} for session, %{downloadDir} for torrent. A bit
confusing. Labels would be more problematic, due to the way labels are stored
and the way the remote exec command builder just pulls variables out of JSON
objects.
Original comment by a...@eth0.org.uk
on 17 Nov 2011 at 1:26
[deleted comment]
%{download-dir} would be the default remote download dir, no? And
%{downloadDir} the download dir for an determined torrent?
In my case I want move the torrent to a folder named "borrar" inside of default
download dir:
transmission-remote %{hostname}:%{port} -n %{username}:%{password} -t %{id}
--move %{download-dir}/borrar
Is this example correct?
Original comment by si...@simonbcn.net
on 17 Nov 2011 at 1:32
I have tested now with %{download-dir}/borrar and it works.
Thanks.
Original comment by si...@simonbcn.net
on 17 Nov 2011 at 1:48
Great. Regarding documentation, I did document this feature in the wiki around
the time 0.7 was released.
http://code.google.com/p/transmission-remote-gtk/wiki/ExecuteCommand
I've just added the transmission-remote --move command as an example.
Original comment by a...@eth0.org.uk
on 17 Nov 2011 at 2:18
Original issue reported on code.google.com by
si...@simonbcn.net
on 16 Nov 2011 at 12:10