From 8241b2ba3e65143c28005b3d551302662ae136e6 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sun, 27 Sep 2015 00:29:25 +0100 Subject: [PATCH] [Core] Return all plugin status keys with empty list --- deluge/core/core.py | 2 +- deluge/core/pluginmanager.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/deluge/core/core.py b/deluge/core/core.py index 96932cea7..d51a17eb0 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -476,7 +476,7 @@ class Core(component.Component): return {} # Ask the plugin manager to fill in the plugin keys - if len(plugin_keys) > 0: + if len(plugin_keys) > 0 or all_keys: status.update(self.pluginmanager.get_status(torrent_id, plugin_keys)) return status diff --git a/deluge/core/pluginmanager.py b/deluge/core/pluginmanager.py index 1c51dbc99..7b89394fa 100644 --- a/deluge/core/pluginmanager.py +++ b/deluge/core/pluginmanager.py @@ -66,6 +66,8 @@ class PluginManager(deluge.pluginmanagerbase.PluginManagerBase, component.Compon def get_status(self, torrent_id, fields): """Return the value of status fields for the selected torrent_id.""" status = {} + if len(fields) == 0: + fields = self.status_fields.keys() for field in fields: try: status[field] = self.status_fields[field](torrent_id)