I have been using Deluge for a few years.
After I have upgraded to version 2 and python3, I got problems getting the output from "deluge-console - info"
Here is my script:
Code: Select all
deluge-console "connect 127.0.0.1:58846; info; exit;" | grep ID | awk -F: '"'"'{print $2}'"'"' | tr -d " " | while read uuid; do echo deluge-console "connect 127.0.0.1:58846; info $uuid; exit "; done
Now I get this error:
Do you know what might be the problem and how to fix it?deluge-console "info; exit;"
Traceback (most recent call last):
File "/usr/bin/deluge-console", line 33, in <module>
sys.exit(load_entry_point('deluge==2.0.3', 'console_scripts', 'deluge-console')())
File "/usr/lib/python3/dist-packages/deluge/ui/console/__init__.py", line 19, in start
Console().start()
File "/usr/lib/python3/dist-packages/deluge/ui/console/console.py", line 153, in start
super(Console, self).start(self.console_parser)
File "/usr/lib/python3/dist-packages/deluge/ui/ui.py", line 66, in start
self.__options = self.parse_args(parser, args)
File "/usr/lib/python3/dist-packages/deluge/ui/ui.py", line 45, in parse_args
options = parser.parse_args(args)
File "/usr/lib/python3/dist-packages/deluge/ui/console/parser.py", line 76, in parse_args
multi_command = self._split_args(args)
File "/usr/lib/python3/dist-packages/deluge/ui/console/parser.py", line 55, in _split_args
cmd_options.command = cmds[0]
IndexError: list index out of range
thanks!
deluge-console 2.0.3
libtorrent: 1.2.9.0
Python: 3.9.2
OS: Linux Raspbian GNU/Linux 11 bullseye