deluge add command

Specific support for Deluge on Microsoft Windows OS
Post Reply
kresten
New User
New User
Posts: 4
Joined: Tue Feb 01, 2011 6:09 pm

deluge add command

Post 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 ?
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: deluge add command

Post by Cas »

if you use deluge-console.exe you can pass it commands from the command line
kresten
New User
New User
Posts: 4
Joined: Tue Feb 01, 2011 6:09 pm

Re: deluge add command

Post by kresten »

well, i just cant get it working.. and the help doesnt give any output when i write deluge-console.exe add --help
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: deluge add command

Post 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"
kresten
New User
New User
Posts: 4
Joined: Tue Feb 01, 2011 6:09 pm

Re: deluge add command

Post by kresten »

thank you - now it outputs "torrent added" but when i run "deluge-console.exe info" it doesnt show the new torrent :/
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: deluge add command

Post by Cas »

I can confirm I see the same thing, I will look into it.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: deluge add command

Post 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\
Attachments
add.py.7z
Fix for deluge-console.exe add issue
(1.86 KiB) Downloaded 355 times
kresten
New User
New User
Posts: 4
Joined: Tue Feb 01, 2011 6:09 pm

Re: deluge add command

Post 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 :)
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: deluge add command

Post 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.
Post Reply