summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar Trigger Hurt <trigger@triggers-world.de> 2012-07-27 17:20:57 +0200
committerGravatar Trigger Hurt <trigger@triggers-world.de> 2012-07-27 17:20:57 +0200
commit176095687f437632cf33484a4dc38e2a51f5cb6f (patch)
tree8d5b704cd98e52472f525b43eb299e662800e16e /pyLoadCore.py
parentFix permissions for log directory (diff)
downloadpyload-176095687f437632cf33484a4dc38e2a51f5cb6f.tar.xz
adds "restart failed on startup" option
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index b69b919d3..ac7c785ca 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -450,6 +450,12 @@ class Core(object):
#self.scheduler.addJob(0, self.accountManager.getAccountInfos)
self.log.info(_("Activating Accounts..."))
self.accountManager.refreshAllAccounts()
+
+ #restart failed
+ if self.config["download"]["restart_failed"]:
+ self.log.info(_("Restarting failed downloads..."))
+ self.api.restartFailed()
+
self.threadManager.pause = False
self.running = True