adding torrents via CLI in ubuntu

General support for problems installing or using Deluge
Post Reply
narrill
New User
New User
Posts: 7
Joined: Mon Jul 07, 2014 10:27 pm

adding torrents via CLI in ubuntu

Post by narrill »

I've come across a lot of sources on the web that say the command for adding torrents is deluge-console add -p savepath torrentpath, but this command doesn't seem to work. What is the proper syntax for the add command now, and how would I go about getting the command to work with spaces in both the torrent path and save path?
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: adding torrents via CLI in ubuntu

Post by Cas »

It is mentioned a lot also to use quotes: deluge-console "add -p savepath torrentpath"
narrill
New User
New User
Posts: 7
Joined: Mon Jul 07, 2014 10:27 pm

Re: adding torrents via CLI in ubuntu

Post by narrill »

That works, but now I have another question. When a torrent is added it's given a name in deluge that's then used to create a subdirectory within the save path for the files, and this is by default the name given to the torrent by the original creator (I think, correct me if I'm wrong). Is there any way to name the torrent after the torrent's file name instead?

EDIT: Alternatively, I think a list of all the possible parameters for the add command would solve my problem.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: adding torrents via CLI in ubuntu

Post by Cas »

Not currently possible with 1.3 console but the one in development can rename torrents iirc.
narrill
New User
New User
Posts: 7
Joined: Mon Jul 07, 2014 10:27 pm

Re: adding torrents via CLI in ubuntu

Post by narrill »

Is there any way to rename torrents after the fact through the API?
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: adding torrents via CLI in ubuntu

Post by Cas »

Of course
narrill
New User
New User
Posts: 7
Joined: Mon Jul 07, 2014 10:27 pm

Re: adding torrents via CLI in ubuntu

Post by narrill »

Can the webUI or the GTK UI rename torrents?

EDIT: Never mind, I figured it out.
Post Reply