From 3512605b8c0370905ae9e7a2adc79ddded2d8d20 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 12 Jul 2013 13:12:59 +0200 Subject: fixed addon related bugs --- pyload/PluginManager.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'pyload/PluginManager.py') diff --git a/pyload/PluginManager.py b/pyload/PluginManager.py index 159e7d9de..dab5be063 100644 --- a/pyload/PluginManager.py +++ b/pyload/PluginManager.py @@ -194,15 +194,13 @@ class PluginManager: if folder == "addons" and "config" not in attrs and not attrs.get("internal", False): attrs["config"] = (["activated", "bool", "Activated", False],) - if "config" in attrs and attrs["config"]: + if "config" in attrs and attrs["config"] is not None: config = attrs["config"] desc = attrs.get("description", "") long_desc = attrs.get("long_description", "") - if type(config[0]) == tuple: - config = [list(x) for x in config] - else: - config = [list(config)] + # Convert tuples to list + config = [list(x) for x in config] if folder == "addons" and not attrs.get("internal", False): for item in config: -- cgit v1.2.3