From a677c082aeabba00a079db581bfae194d069cf11 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 9 May 2015 23:24:08 +0200 Subject: Fix https://github.com/pyload/pyload/issues/1406 --- pyload/network/HTTPDownload.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pyload/network') 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 -- cgit v1.2.3