summaryrefslogtreecommitdiffstats
path: root/pyload/network
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/network')
-rw-r--r--pyload/network/Browser.py2
-rw-r--r--pyload/network/HTTPDownload.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/pyload/network/Browser.py b/pyload/network/Browser.py
index 1015efd7e..482c2320a 100644
--- a/pyload/network/Browser.py
+++ b/pyload/network/Browser.py
@@ -91,7 +91,7 @@ class Browser(object):
progressNotify=None, disposition=False):
""" this can also download ftp """
self._size = 0
- self.dl = HTTPDownload(url, filename, get or {}, post or {}, self.lastEffectiveURL if ref else None,
+ self.dl = HTTPDownload(url, filename, get, post, self.lastEffectiveURL if ref else None,
self.cj if cookies else None, self.bucket, self.options, progressNotify, disposition)
name = self.dl.download(chunks, resume)
self._size = self.dl.size
diff --git a/pyload/network/HTTPDownload.py b/pyload/network/HTTPDownload.py
index a266548cf..90169571c 100644
--- a/pyload/network/HTTPDownload.py
+++ b/pyload/network/HTTPDownload.py
@@ -82,7 +82,7 @@ class HTTPDownload(object):
if self.info.getCount() > 1:
with open(init, "rb+") as fo: #: first chunkfile
for i in xrange(1, self.info.getCount()):
- #input file
+ # input file
fo.seek(
self.info.getChunkRange(i - 1)[1] + 1) #: seek to beginning of chunk, to get rid of overlapping chunks
fname = fs_encode("%s.chunk%d" % (self.filename, i))
@@ -178,7 +178,7 @@ class HTTPDownload(object):
self.chunks.append(c)
self.m.add_handle(handle)
else:
- #close immediatly
+ # close immediatly
self.log.debug("Invalid curl handle -> closed")
c.close()