summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Vuolter <vuolter@gmail.com> 2013-05-11 01:12:36 +0200
committerGravatar Vuolter <vuolter@gmail.com> 2013-05-12 14:54:43 +0200
commit953de446a67e91ff44434df78f92297ca7091328 (patch)
treefce4ad77dff70a31c1a36096b89ca54ce58b117a /module/plugins
parentVersion 1.0: improved code + added feature "Restart on plugin activation" + m... (diff)
downloadpyload-953de446a67e91ff44434df78f92297ca7091328.tar.xz
Version 1.1: fixes
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/hooks/RestartFailed.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/module/plugins/hooks/RestartFailed.py b/module/plugins/hooks/RestartFailed.py
index 273bb2910..3a69ae8c2 100644
--- a/module/plugins/hooks/RestartFailed.py
+++ b/module/plugins/hooks/RestartFailed.py
@@ -18,13 +18,13 @@
"""
from module.plugins.Hook import Hook
-import time
+from time import time
class RestartFailed(Hook):
__name__ = "RestartFailed"
- __version__ = "1.0"
- __description__ = "Automatically restart failed/aborted downloads according to defined rules"
+ __version__ = "1.1"
+ __description__ = "Automatically restart failed/aborted downloads"
__config__ = [
("activated", "bool", "Activated", "True"),
("dlFail", "bool", "Restart when download fail", "True"),
@@ -79,7 +79,7 @@ class RestartFailed(Hook):
self.info["dlfailed"] = curr + 1
def checkFailed(self, pyfile):
- status = pygile.getStatusName()
+ status = pyfile.getStatusName()
if status == "failed" or status == "aborted":
self.checkFailed_n()
@@ -130,4 +130,3 @@ class RestartFailed(Hook):
self.info = {"dlfailed": 0, "lastrstime": 0, "timerflag": False}
if self.getConfig("rsLoad"):
self.restart()
- self.configEvents(None, None, None)