summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
Diffstat (limited to 'module')
-rw-r--r--module/download_thread.py2
-rw-r--r--module/file_list.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/module/download_thread.py b/module/download_thread.py
index 2c9cc8791..27abe919d 100644
--- a/module/download_thread.py
+++ b/module/download_thread.py
@@ -113,6 +113,8 @@ class Download_Thread(threading.Thread):
pyfile.status.type = "reconnected"
pyfile.status.want_reconnect = False
raise Reconnect
+ if pyfile.plugin.req.abort:
+ raise AbortDownload
sleep(1)
pyfile.status.want_reconnect = False
return True
diff --git a/module/file_list.py b/module/file_list.py
index 303c49a80..cb7336620 100644
--- a/module/file_list.py
+++ b/module/file_list.py
@@ -129,7 +129,7 @@ class File_List(object):
for i in obj['order']:
self.append(obj[i].url)
- self.core.logger.info("Links loaded: " + str(int(len(obj) - 1)))
+ self.core.logger.info("Links loaded: " + str(int(len(obj) - 2)))
def inform_client(self):
obj = RequestObject()