summaryrefslogtreecommitdiffstats
path: root/module/network
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2010-04-08 21:45:05 +0200
committerGravatar spoob <spoob@gmx.de> 2010-04-08 21:45:05 +0200
commit8ea7bd3241016b2084eb923c37bf7e7a75a296eb (patch)
treef1f18eeebe6bfc315de9729642c5adda87e147ab /module/network
parentCleaned Megaupload (diff)
downloadpyload-8ea7bd3241016b2084eb923c37bf7e7a75a296eb.tar.xz
_.-:Package Folders:-._
Diffstat (limited to 'module/network')
-rwxr-xr-xmodule/network/Request.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/network/Request.py b/module/network/Request.py
index a074df7c4..76f94ae41 100755
--- a/module/network/Request.py
+++ b/module/network/Request.py
@@ -250,7 +250,6 @@ class Request:
self.chunkRead += chunkSize
self.dl_arrived += chunkSize
-
self.pycurl.setopt(pycurl.WRITEFUNCTION, writefunc)
try:
@@ -264,13 +263,14 @@ class Request:
if self.abort:
raise AbortDownload
-
- rename(file_temp, self.get_free_name(file_name))
+
+ free_name = self.get_free_name(file_name)
+ rename(file_temp, free_name)
self.dl = False
self.dl_finished = time.time()
- return True
+ return free_name
def updateCurrentSpeed(self, speed):
self.dl_speed = speed