diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-07-14 10:44:21 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-07-14 10:44:21 +0200 |
commit | dfb207807392bf30f3a07099fc3fc644553e5453 (patch) | |
tree | 5c27a4b486e0a59d6f48cceb4416821ddbb9ed1d /module | |
parent | may stable (diff) | |
download | pyload-dfb207807392bf30f3a07099fc3fc644553e5453.tar.xz |
little fixes
Diffstat (limited to 'module')
-rw-r--r-- | module/download_thread.py | 2 | ||||
-rw-r--r-- | module/file_list.py | 2 |
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() |