Page 1 of 1

deluge-console >= 1.2.0 && scripting

Posted: Tue Dec 08, 2009 6:25 pm
by tsk
I use deluge only because of it's client-daemon architecture and scripting feature.

Before updating from 1.1.9 this command is worked perfectly:

Code: Select all

deluge -u console -a "config --set max_active_downloading 1"
Now it says:

Code: Select all

Unknown command: c
Such command

Code: Select all

nice -n 19 deluge -u console 'config --set max_active_downloading 1'
is crash on rc3 and do nothing on rc4.

Another try:

Code: Select all

$ echo 'config --set max_active_downloading 1' | deluge -u console

[ERROR   ] 00:14:51 screen:296 'ConsoleUI' object has no attribute 'batch_write'
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.5/deluge/ui/console/screen.py", line 294, in doRead
            self._doRead()
File "/usr/lib/pymodules/python2.5/deluge/ui/console/screen.py", line 307, in _doRead
                     self.command_parser(self.input)
File "/usr/lib/pymodules/python2.5/deluge/ui/console/main.py", line 307, in do_command
                                                self.write("{!error!}" + str(e))
File "/usr/lib/pymodules/python2.5/deluge/ui/console/main.py", line 263, in write
                                                                       self.screen.add_line(line, not self.batch_write)
AttributeError: 'ConsoleUI' object has no attribute 'batch_write'
I use Debian testing/unstable.

Please, tell me the right way.

Re: deluge-console >= 1.2.0 && scripting

Posted: Tue Dec 08, 2009 6:36 pm
by diablo_man5666
The CLI is, as you stated in the title of your post is 'deluge-console' To change settings as you did pre-1.2 with deluge -u console -a "config --set ......", you should use: deluge-console "config -s <setting_name> <new_value>"

I use it for cycling autoadding all the time.

Good luck.

Re: deluge-console >= 1.2.0 && scripting

Posted: Mon Dec 14, 2009 5:54 am
by tsk
diablo_man5666 wrote:The CLI is, as you stated in the title of your post is 'deluge-console' To change settings as you did pre-1.2 with deluge -u console -a "config --set ......", you should use: deluge-console "config -s <setting_name> <new_value>"

I use it for cycling autoadding all the time.

Good luck.
Success!

Why 'deluge --u console' doesn't work as expected?

And what is the 'batch_write' error, which is occuring sometimes even with 'deluge-console' command?

Re: deluge-console >= 1.2.0 && scripting

Posted: Tue Dec 15, 2009 5:44 am
by diablo_man5666
tsk wrote:
diablo_man5666 wrote:The CLI is, as you stated in the title of your post is 'deluge-console' To change settings as you did pre-1.2 with deluge -u console -a "config --set ......", you should use: deluge-console "config -s <setting_name> <new_value>"

I use it for cycling autoadding all the time.

Good luck.
Success!

Why 'deluge --u console' doesn't work as expected?

And what is the 'batch_write' error, which is occuring sometimes even with 'deluge-console' command?

The reason why 'deluge -u console' doesn't work is because they factored the console and web UIs into separate binaries. There is 'deluge-console' and 'deluge-web'. Not sure what the batch_write error is about.