summaryrefslogtreecommitdiffstats
path: root/module/thread_list.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-06-26 11:37:44 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-06-26 11:37:44 +0200
commite260b201f94a2a1e470b85a6499ea70e20a11277 (patch)
tree356dc9f5a7d8ef14cf6befb8cfa324b991571a0c /module/thread_list.py
parentfixed occasionally appearing cli bug, catpcha method for sharebiz @ ~60% (diff)
downloadpyload-e260b201f94a2a1e470b85a6499ea70e20a11277.tar.xz
Cli stable, able to abort downloads, pause/kill server
Diffstat (limited to 'module/thread_list.py')
-rw-r--r--module/thread_list.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/module/thread_list.py b/module/thread_list.py
index 1dadb91d3..52b264648 100644
--- a/module/thread_list.py
+++ b/module/thread_list.py
@@ -99,18 +99,19 @@ class Thread_List(object):
self.list.remove(pyfile)
if pyfile.plugin.props['type'] == "container":
-
self.list.extend(pyfile.plugin.links)
-
- if pyfile.status.type == "reconnected":#put it back in queque
+ elif pyfile.status.type == "reconnected":#put it back in queque
self.list.files.insert(0, pyfile)
- if pyfile.status.type == "failed":
+ elif pyfile.status.type == "failed":
self.parent.logger.warning("Download failed: " + pyfile.url+" | "+ pyfile.status.error)
with open(self.parent.config['failed_file'], 'a') as f:
f.write(pyfile.url + "\n")
+ self.list.remove(pyfile)
+ elif pyfile.status.type == "aborted":
+ self.parent.logger.info("Download aborted: " + pyfile.url)
self.list.remove(pyfile)
self.list.save()