summaryrefslogtreecommitdiffstats
path: root/module/network
diff options
context:
space:
mode:
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