Page 1 of 1

deluge add command

Posted: Tue Feb 01, 2011 6:14 pm
by kresten
Hey guys

im trying to add new torrents to deluge using commandline. what i want to do is give deluge both path to .torrent file and a path where to save the files.
i found this in deluge forum "add -p /home/<user>/Downloads/ http://releases.ubuntu.com/9.10/ubuntu- ... so.torrent"
so i tried on my home pc - deluge.exe "add -p e:\ubuntu c:\ubuntu-9.10-desktop-i386.iso.torrent"

but that doesnt work :/ is anyone able to help med ?

Re: deluge add command

Posted: Tue Feb 01, 2011 9:02 pm
by Cas
if you use deluge-console.exe you can pass it commands from the command line

Re: deluge add command

Posted: Wed Feb 02, 2011 11:21 am
by kresten
well, i just cant get it working.. and the help doesnt give any output when i write deluge-console.exe add --help

Re: deluge add command

Posted: Wed Feb 02, 2011 2:24 pm
by Cas
You need to be running deluge in thin-client setup so that means running deluged.exe and then connecting to it with deluge-console.exe.

Code: Select all

deluge-console.exe help
deluge-console.exe info
deluge-console.exe "add --help"
deluge-console.exe "add -p c:\new c:\new.torrent"

Re: deluge add command

Posted: Fri Feb 04, 2011 3:13 pm
by kresten
thank you - now it outputs "torrent added" but when i run "deluge-console.exe info" it doesnt show the new torrent :/

Re: deluge add command

Posted: Fri Feb 04, 2011 7:43 pm
by Cas
I can confirm I see the same thing, I will look into it.

Re: deluge add command

Posted: Sat Feb 05, 2011 2:12 am
by Cas
The attachment should fix your problem.

Copy the file into: C:\Program Files\Deluge\deluge-1.3.1-py2.6.egg\deluge\ui\console\commands\

Re: deluge add command

Posted: Sat Feb 12, 2011 1:52 am
by kresten
It works, super nice :)

I have a minor request though. When saving torrent-data to D:\, and the torrent is created with a torrent-name (not filename) like Test-Data, the data is typicaly saved to D:\Test-Data\.
I would like if it was possible to disable that directory-naming, so that the torrent data is saved to D:\, regardless of the torrent name :)

Re: deluge add command

Posted: Sat Feb 12, 2011 1:50 pm
by Cas
If the torrent was created from a folder then it will create a folder upon being loaded into Deluge.

I think there may be a feature request ticket for this.