diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-13 08:21:50 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-13 08:21:50 +0200 |
commit | 486adc1874e463b1563ad2394b216faff388b10d (patch) | |
tree | 58009056cb67e35930d49a9dd6af45adf6a8d434 /pyload/plugin/addon/UpdateManager.py | |
parent | Fix https://github.com/pyload/pyload/issues/1349 (diff) | |
download | pyload-486adc1874e463b1563ad2394b216faff388b10d.tar.xz |
Prepare plugins to merging from stable
Diffstat (limited to 'pyload/plugin/addon/UpdateManager.py')
-rw-r--r-- | pyload/plugin/addon/UpdateManager.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pyload/plugin/addon/UpdateManager.py b/pyload/plugin/addon/UpdateManager.py index 34ef771c2..8e27d9959 100644 --- a/pyload/plugin/addon/UpdateManager.py +++ b/pyload/plugin/addon/UpdateManager.py @@ -28,11 +28,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), @@ -43,9 +43,9 @@ class UpdateManager(Addon): "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" if release_status == 5 else None MIN_CHECK_INTERVAL = 3 * 60 * 60 #: 3 hours @@ -165,7 +165,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:] |