diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-07-12 13:12:59 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-07-12 13:12:59 +0200 |
commit | 3512605b8c0370905ae9e7a2adc79ddded2d8d20 (patch) | |
tree | b7a9b68ebd599ecbe96dee0ca650d120093f632b /pyload/PluginManager.py | |
parent | Merge remote-tracking branch 'origin/stable' (diff) | |
download | pyload-3512605b8c0370905ae9e7a2adc79ddded2d8d20.tar.xz |
fixed addon related bugs
Diffstat (limited to 'pyload/PluginManager.py')
-rw-r--r-- | pyload/PluginManager.py | 8 |
1 files changed, 3 insertions, 5 deletions
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: |