summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
Diffstat (limited to 'module')
-rw-r--r--module/PyFile.py2
-rw-r--r--module/network/HTTPChunk.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/module/PyFile.py b/module/PyFile.py
index b5dabaabf..69ccc4baf 100644
--- a/module/PyFile.py
+++ b/module/PyFile.py
@@ -250,7 +250,7 @@ class PyFile(object):
def getBytesLeft(self):
""" gets bytes left """
try:
- return self.plugin.req.size - self.plugin.req.arrived
+ return self.getSize() - self.plugin.req.arrived
except:
return 0
diff --git a/module/network/HTTPChunk.py b/module/network/HTTPChunk.py
index 886306233..719c3ed0b 100644
--- a/module/network/HTTPChunk.py
+++ b/module/network/HTTPChunk.py
@@ -207,7 +207,7 @@ class HTTPChunk(HTTPRequest):
# as first chunk, we will parse the headers
if not self.range and self.header.endswith("\r\n\r\n"):
self.parseHeader()
- elif not self.range and buf.startswith("150") and "data connection" in buf: #ftp file size parsing
+ elif not self.range and buf.startswith("150") and "data connection" in buf.lower(): #: ftp file size parsing
size = search(r"(\d+) bytes", buf)
if size:
self.p.size = int(size.group(1))