summaryrefslogtreecommitdiffstats
path: root/module/download_thread.py
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2009-12-16 22:28:57 +0100
committerGravatar spoob <spoob@gmx.de> 2009-12-16 22:28:57 +0100
commit9fd8d0c20d4495319b72bd2faa7275c75a7fcacc (patch)
tree2d1ac039749143801e8e41a0244874bbf2ffe4ef /module/download_thread.py
parentnew images (diff)
downloadpyload-9fd8d0c20d4495319b72bd2faa7275c75a7fcacc.tar.xz
Fixed Relink.us, Uploaded.to Name Bug
Diffstat (limited to 'module/download_thread.py')
-rw-r--r--module/download_thread.py17
1 files changed, 6 insertions, 11 deletions
diff --git a/module/download_thread.py b/module/download_thread.py
index 89a10533a..401d6f943 100644
--- a/module/download_thread.py
+++ b/module/download_thread.py
@@ -140,22 +140,17 @@ class Download_Thread(threading.Thread):
20 - unknown error
"""
if code == 0:
- self.parent.parent.logger.info("Checksum ok ('%s')" % status.filename)
+ self.parent.parent.logger.info("Checksum ok ('%s')" % status.filename)
elif code == 1:
- self.parent.parent.logger.info("Checksum not matched! ('%s')" % status.filename)
+ self.parent.parent.logger.info("Checksum not matched! ('%s')" % status.filename)
elif code == 5:
- self.parent.parent.logger.debug("Can't get checksum for %s" % status.filename)
+ self.parent.parent.logger.debug("Can't get checksum for %s" % status.filename)
elif code == 10:
- self.parent.parent.logger.debug("Checksum not implemented for %s" % status.filename)
+ self.parent.parent.logger.debug("Checksum not implemented for %s" % status.filename)
if not check:
- raise Checksum(code, location)
- #print "checksum check returned: %s, %s" % (check, code)
-
- status.type = "finished"
+ raise Checksum(code, location)
- #startet downloader
- #urllib.urlretrieve(status.url, pyfile.download_folder + "/" + status.filename, status)
- #self.shutdown = True
+ status.type = "finished"
def wait(self, pyfile):
pyfile.status.type = "waiting"