diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-09 23:24:08 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-09 23:24:08 +0200 |
commit | a677c082aeabba00a079db581bfae194d069cf11 (patch) | |
tree | 5fa099c37aa241f9a0ef7ba6d2994b01d9e1df2f /pyload/network | |
parent | Remove old .pot files (diff) | |
download | pyload-a677c082aeabba00a079db581bfae194d069cf11.tar.xz |
Fix https://github.com/pyload/pyload/issues/1406
Diffstat (limited to 'pyload/network')
-rw-r--r-- | pyload/network/HTTPDownload.py | 6 |
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 |