summaryrefslogtreecommitdiffstats
path: root/module/download_thread.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-11-09 21:06:39 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-11-09 21:06:39 +0100
commita58cfc276be9736578d7ce8f1dd63a621f94c637 (patch)
tree03d24194dc87c1141d780378b94f2b2d5652293d /module/download_thread.py
parentuploaded.to premium (diff)
downloadpyload-a58cfc276be9736578d7ce8f1dd63a621f94c637.tar.xz
checksum methods for RapidshareCom and UploadedTo
Diffstat (limited to 'module/download_thread.py')
-rw-r--r--module/download_thread.py18
1 files changed, 16 insertions, 2 deletions
diff --git a/module/download_thread.py b/module/download_thread.py
index 98e4915c5..9c7fe1a42 100644
--- a/module/download_thread.py
+++ b/module/download_thread.py
@@ -107,9 +107,23 @@ class Download_Thread(threading.Thread):
status.url = pyfile.plugin.get_file_url()
status.type = "downloading"
+
+ local_file = pyfile.download_folder + "/" + status.filename
+ pyfile.plugin.proceed(status.url, local_file)
- pyfile.plugin.proceed(status.url, pyfile.download_folder + "/" + status.filename)
-
+ status.type = "checking"
+
+ check, code = pyfile.plugin.check_file(local_file)
+ """
+ return codes:
+ 0 - checksum ok
+ 1 - checksum wrong
+ 5 - can't get checksum
+ 10 - not implemented
+ 20 - unknown error
+ """
+ #print "checksum check returned: %s, %s" % (check, code)
+
status.type = "finished"
#startet downloader