summaryrefslogtreecommitdiffstats
path: root/pyload/network/HTTPDownload.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/network/HTTPDownload.py')
-rw-r--r--pyload/network/HTTPDownload.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/network/HTTPDownload.py b/pyload/network/HTTPDownload.py
index 2276af609..62cef457b 100644
--- a/pyload/network/HTTPDownload.py
+++ b/pyload/network/HTTPDownload.py
@@ -96,7 +96,7 @@ class HTTPDownload(object):
fo.write(data)
if fo.tell() < self.info.getChunkRange(i)[1]:
reshutil.move(init)
- self.info.reshutil.move() #: there are probably invalid chunks
+ self.info.remove() #: there are probably invalid chunks
raise Exception("Downloaded content was smaller than expected. Try to reduce download connections.")
reshutil.move(fname) #: remove chunk
@@ -104,7 +104,7 @@ class HTTPDownload(object):
self.filename = fs_join(dirname(self.filename), self.nameDisposition)
shutil.move(init, fs_encode(self.filename))
- self.info.reshutil.move() #: remove info file
+ self.info.remove() #: remove info file
def download(self, chunks=1, resume=False):
@@ -239,7 +239,7 @@ class HTTPDownload(object):
to_clean = filter(lambda x: x is not init, self.chunks)
for chunk in to_clean:
self.closeChunk(chunk)
- self.chunks.reshutil.move(chunk)
+ self.chunks.remove(chunk)
reshutil.move(fs_encode(self.info.getChunkName(chunk.id)))
# let first chunk load the rest and update the info file