Skip to content

from_deluge plugin KeyError with deluge 2.0 #2185

@Superchicken

Description

@Superchicken

Expected behaviour:

The from_deluge plugin should produce entries from the deluge client.

Actual behaviour:

KeyError, similar to #1086.

2018-07-31 20:54 CRITICAL task          remove_from_ram BUG: Unhandled error in plugin from_deluge: <class 'future.types.newlist.newlist'>
Traceback (most recent call last):
  File "/media/md5/superchicken/flexget-dev/flexget/task.py", line 486, in __run_plugin
    return method(*args, **kwargs)
  File "/media/md5/superchicken/flexget-dev/flexget/event.py", line 23, in __call__
    return self.func(*args, **kwargs)
  File "/media/md5/superchicken/flexget-dev/flexget/plugins/clients/deluge.py", line 214, in on_task_input
    self.entries = self.generate_entries(config)
  File "/media/md5/superchicken/flexget-dev/flexget/plugins/clients/deluge.py", line 220, in generate_entries
    torrents = self.get_torrents_status(list(self.settings_map.keys()) + config.get('keys', []))
  File "/media/md5/superchicken/flexget-dev/flexget/plugins/clients/deluge.py", line 71, in get_torrents_status
    return self.client.call('core.get_torrents_status', filters, fields)
  File "/media/md5/superchicken/pip/local/lib/python2.7/site-packages/deluge_client/client.py", line 213, in call
    self._send_call(self.deluge_version, method, *args, **kwargs)
  File "/media/md5/superchicken/pip/local/lib/python2.7/site-packages/deluge_client/client.py", line 130, in _send_call
    req = zlib.compress(dumps(req))
  File "/media/md5/superchicken/pip/local/lib/python2.7/site-packages/deluge_client/rencode.py", line 429, in dumps
    encode_func[type(x)](x, r)
  File "/media/md5/superchicken/pip/local/lib/python2.7/site-packages/deluge_client/rencode.py", line 379, in encode_list
    encode_func[type(i)](i, r)
  File "/media/md5/superchicken/pip/local/lib/python2.7/site-packages/deluge_client/rencode.py", line 379, in encode_list
    encode_func[type(i)](i, r)
  File "/media/md5/superchicken/pip/local/lib/python2.7/site-packages/deluge_client/rencode.py", line 379, in encode_list
    encode_func[type(i)](i, r)
KeyError: <class 'future.types.newlist.newlist'>

Steps to reproduce:

Config:

config.yml

Log:

crash_report.2018.07.31.205427858564.log

Additional information:

  • FlexGet version: 2.14.11.dev
  • Python version: 2.7.13
  • Deluged version: 2.0.0b2.dev105 (libtorrent: 1.1.9.0)
  • Deluge-client version: 1.6.0
  • Installation method:
  • Using daemon (yes/no): yes
  • OS and version: Debian GNU/Linux 9.4 (stretch)
  • Link to crash log: same as above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions