summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/addon/UpdateManager.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-26 18:29:00 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-26 18:29:00 +0100
commitc3b406a00aba3fa549676a8181a5eb2a99d77c87 (patch)
treedc9c76f31e4c0baec0a53b6e2bd03182de08f518 /pyload/plugin/addon/UpdateManager.py
parentCleanup (diff)
downloadpyload-c3b406a00aba3fa549676a8181a5eb2a99d77c87.tar.xz
Diffstat (limited to 'pyload/plugin/addon/UpdateManager.py')
-rw-r--r--pyload/plugin/addon/UpdateManager.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/pyload/plugin/addon/UpdateManager.py b/pyload/plugin/addon/UpdateManager.py
index cd8dc9a03..a2b26b618 100644
--- a/pyload/plugin/addon/UpdateManager.py
+++ b/pyload/plugin/addon/UpdateManager.py
@@ -27,11 +27,11 @@ def exists(path):
class UpdateManager(Addon):
- __name__ = "UpdateManager"
- __type__ = "addon"
- __version__ = "0.50"
+ __name = "UpdateManager"
+ __type = "addon"
+ __version = "0.50"
- __config__ = [("activated" , "bool", "Activated" , True ),
+ __config = [("activated" , "bool", "Activated" , True ),
("checkinterval", "int" , "Check interval in hours" , 8 ),
("autorestart" , "bool", "Auto-restart pyLoad when required" , True ),
("checkonstart" , "bool", "Check for updates on startup" , True ),
@@ -39,9 +39,9 @@ class UpdateManager(Addon):
("reloadplugins", "bool", "Monitor plugin code changes in debug mode", True ),
("nodebugupdate", "bool", "Don't update plugins in debug mode" , False)]
- __description__ = """ Check for updates """
- __license__ = "GPLv3"
- __authors__ = [("Walter Purcaro", "vuolter@gmail.com")]
+ __description = """ Check for updates """
+ __license = "GPLv3"
+ __authors = [("Walter Purcaro", "vuolter@gmail.com")]
SERVER_URL = "http://updatemanager.pyload.org"
MIN_CHECK_INTERVAL = 3 * 60 * 60 #: 3 hours
@@ -83,15 +83,15 @@ class UpdateManager(Addon):
def autoreloadPlugins(self):
""" reload and reindex all modified plugins """
modules = filter(
- lambda m: m and (m.__name__.startswith("module.plugins.") or
- m.__name__.startswith("userplugins.")) and
- m.__name__.count(".") >= 2, sys.modules.itervalues()
+ lambda m: m and (m.__name.startswith("module.plugins.") or
+ m.__name.startswith("userplugins.")) and
+ m.__name.count(".") >= 2, sys.modules.itervalues()
)
reloads = []
for m in modules:
- root, type, name = m.__name__.rsplit(".", 2)
+ root, type, name = m.__name.rsplit(".", 2)
id = (type, name)
if type in self.core.pluginManager.plugins:
f = m.__file__.replace(".pyc", ".py")
@@ -169,7 +169,7 @@ class UpdateManager(Addon):
url = data[0]
schema = data[1].split('|')
- VERSION = re.compile(r'__version__.*=.*("|\')([\d.]+)')
+ VERSION = re.compile(r'__version.*=.*("|\')([\d.]+)')
if "BLACKLIST" in data:
blacklist = data[data.index('BLACKLIST') + 1:]