summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/UpdateManager.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-18 16:01:23 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-18 16:01:23 +0100
commit753b3c9daee9926c84d4053864af2079fcfc8557 (patch)
tree64c116ba63aee250448d6c777116e9b2a29e5d06 /module/plugins/hooks/UpdateManager.py
parent[XFileSharingPro] Fix typo (diff)
downloadpyload-753b3c9daee9926c84d4053864af2079fcfc8557.tar.xz
Spare code cosmetics (2)
Diffstat (limited to 'module/plugins/hooks/UpdateManager.py')
-rw-r--r--module/plugins/hooks/UpdateManager.py30
1 files changed, 15 insertions, 15 deletions
diff --git a/module/plugins/hooks/UpdateManager.py b/module/plugins/hooks/UpdateManager.py
index 27d976f17..7270bc34f 100644
--- a/module/plugins/hooks/UpdateManager.py
+++ b/module/plugins/hooks/UpdateManager.py
@@ -49,21 +49,21 @@ class UpdateManager(Hook):
MIN_CHECK_INTERVAL = 3 * 60 * 60 #: 3 hours
- def pluginConfigChanged(self, plugin, name, value):
- if name == "interval":
- interval = value * 60 * 60
- if self.MIN_CHECK_INTERVAL <= interval != self.interval:
- self.core.scheduler.removeJob(self.cb)
- self.interval = interval
- self.initPeriodical()
- else:
- self.logDebug("Invalid interval value, kept current")
-
- elif name == "reloadplugins":
- if self.cb2:
- self.core.scheduler.removeJob(self.cb2)
- if value is True and self.core.debug:
- self.periodical2()
+ # def pluginConfigChanged(self, plugin, name, value):
+ # if name == "interval":
+ # interval = value * 60 * 60
+ # if self.MIN_CHECK_INTERVAL <= interval != self.interval:
+ # self.core.scheduler.removeJob(self.cb)
+ # self.interval = interval
+ # self.initPeriodical()
+ # else:
+ # self.logDebug("Invalid interval value, kept current")
+
+ # elif name == "reloadplugins":
+ # if self.cb2:
+ # self.core.scheduler.removeJob(self.cb2)
+ # if value is True and self.core.debug:
+ # self.periodical2()
def coreReady(self):