diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-01-09 21:20:15 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-01-09 21:20:15 +0100 |
commit | b1ec095e0ddb6fc3ebfe2f8659c1c72c0f65860f (patch) | |
tree | 209d20767128f133e1440c81471a1134e5691c3b | |
parent | enabled chunk download for files.mail.ru (diff) | |
download | pyload-b1ec095e0ddb6fc3ebfe2f8659c1c72c0f65860f.tar.xz |
fixed resume
-rw-r--r-- | module/network/HTTPChunk.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/network/HTTPChunk.py b/module/network/HTTPChunk.py index 89770769f..54cb79b1c 100644 --- a/module/network/HTTPChunk.py +++ b/module/network/HTTPChunk.py @@ -153,7 +153,7 @@ class HTTPChunk(HTTPRequest): if not self.arrived + self.range[0] - self.range[1]: return None if self.id == len(self.p.info.chunks) - 1: #as last chunk dont set end range, so we get everything - range = "%i-" % self.range[0] + range = "%i-" % self.arrived + self.range[0] else: range = "%i-%i" % (self.arrived + self.range[0], min(self.range[1] + 1, self.p.size - 1)) |