summaryrefslogtreecommitdiffstats
path: root/module/download_thread.py
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2009-12-15 23:37:20 +0100
committerGravatar spoob <spoob@gmx.de> 2009-12-15 23:37:20 +0100
commitde5a37e0ffc97bc5893077f935429ba32a9b8f6c (patch)
treec88ebe6af9a5221e7d249b8f5a0ae7f72ed262a2 /module/download_thread.py
parentRS fixedhg (diff)
downloadpyload-de5a37e0ffc97bc5893077f935429ba32a9b8f6c.tar.xz
Incomplete: Rapidshare Folder
Diffstat (limited to 'module/download_thread.py')
-rw-r--r--module/download_thread.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/module/download_thread.py b/module/download_thread.py
index be7896b5f..3ec49218d 100644
--- a/module/download_thread.py
+++ b/module/download_thread.py
@@ -19,6 +19,7 @@
###
import threading
import traceback
+from os.path import join
from time import sleep, time
from module.network.Request import AbortDownload
@@ -122,17 +123,14 @@ class Download_Thread(threading.Thread):
pyfile.plugin.prepare(self)
pyfile.plugin.req.set_timeout(self.parent.parent.config['general']['max_download_time'])
- if status.url == "":
- status.url = pyfile.plugin.get_file_url()
-
status.type = "downloading"
- local_file = pyfile.folder + "/" + status.filename
- pyfile.plugin.proceed(status.url, local_file)
+ location = join(pyfile.folder, status.filename)
+ pyfile.plugin.proceed(status.url, location)
status.type = "checking"
- check, code = pyfile.plugin.check_file(local_file)
+ check, code = pyfile.plugin.check_file(location)
"""
return codes:
0 - checksum ok