diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-12-30 21:00:46 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-12-30 21:00:46 +0100 |
commit | a55de481b3b2de288dc059bb48c72dd348bb6a66 (patch) | |
tree | 7474de3455e6315ed2e2f1f6d732e00bc38e9281 /module/plugins/hooks/UpdateManager.py | |
parent | OronCom fix - thx petrucci77 (diff) | |
parent | rehost fix (diff) | |
download | pyload-a55de481b3b2de288dc059bb48c72dd348bb6a66.tar.xz |
Merged in DHMH/pyload (pull request #13)
Diffstat (limited to 'module/plugins/hooks/UpdateManager.py')
-rw-r--r-- | module/plugins/hooks/UpdateManager.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/hooks/UpdateManager.py b/module/plugins/hooks/UpdateManager.py index 920a88060..0dfb42ff2 100644 --- a/module/plugins/hooks/UpdateManager.py +++ b/module/plugins/hooks/UpdateManager.py @@ -30,7 +30,7 @@ from module.plugins.Hook import threaded, Expose, Hook class UpdateManager(Hook): __name__ = "UpdateManager" - __version__ = "0.1" + __version__ = "0.11" __description__ = """checks for updates""" __config__ = [("activated", "bool", "Activated", "True"), ("interval", "int", "Check interval in minutes", "360"), @@ -124,6 +124,7 @@ class UpdateManager(Hook): else: name = filename.replace(".py", "") + #TODO: obsolete if prefix.endswith("s"): type = prefix[:-1] else: @@ -160,7 +161,7 @@ class UpdateManager(Hook): f.close() self.updated = True - reloads.append((type, name)) + reloads.append((prefix, name)) self.reloaded = self.core.pluginManager.reloadPlugins(reloads) @@ -191,4 +192,4 @@ class UpdateManager(Hook): reloads.append(id) self.mtimes[id] = mtime - self.core.pluginManager.reloadPlugins(reloads)
\ No newline at end of file + self.core.pluginManager.reloadPlugins(reloads) |