Treferwynd / transmission-remote-gtk

Automatically exported from code.google.com/p/transmission-remote-gtk
GNU General Public License v2.0
0 stars 0 forks source link

Questions about Actions #164

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For example, I want create one action to move the content of torrent to one 
folder, but I want that this torrent remains active and sharing.
How can I do this with Actions?

Original issue reported on code.google.com by si...@simonbcn.net on 16 Nov 2011 at 12:10

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Yes, it works, thanks.
Is there any documentation about this?

Original comment by si...@simonbcn.net on 16 Nov 2011 at 11:53

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
%{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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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