diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-01-08 00:15:04 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-01-08 00:15:04 +0100 |
commit | 4bbb75de3ee0b0f02408f8c39d82004b7209ea7e (patch) | |
tree | e61aede937e5f0011a8432a99ec90098e9bf0251 /pyLoadCore.py | |
parent | new l18n files (diff) | |
download | pyload-4bbb75de3ee0b0f02408f8c39d82004b7209ea7e.tar.xz |
new buttons to (remove finished/restart failed) links
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index d1dffb6c7..259e2cd0c 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -373,6 +373,8 @@ class Core(object): self.scheduler.addJob(0, self.accountManager.getAccountInfos) + self.server_methods.delete_finished() + while True: sleep(2) if self.do_restart: @@ -865,6 +867,15 @@ class ServerMethods(): end = self.core.config['reconnect']['endTime'].split(":") return self.core.compare_time(start, end) + def delete_finished(self): + """ delete all finished links + packages, returns deleted packages """ + deleted = self.core.files.deleteFinishedLinks() + return deleted + + def restart_failed(self): + """ restart all failed links """ + self.core.files.restartFailed() + def deamon(): try: pid = os.fork() |