summaryrefslogtreecommitdiffstats
path: root/pyload/network/HTTPDownload.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-12 00:52:10 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-12 00:52:10 +0100
commit8be6df43e1d3ae274ee8002588b650ec181a05f6 (patch)
tree6a2077411e2587673c0045434c9f115887c1b17e /pyload/network/HTTPDownload.py
parentFix JsEngine (diff)
downloadpyload-8be6df43e1d3ae274ee8002588b650ec181a05f6.tar.xz
Spare code fixes (2)
Diffstat (limited to 'pyload/network/HTTPDownload.py')
-rw-r--r--pyload/network/HTTPDownload.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyload/network/HTTPDownload.py b/pyload/network/HTTPDownload.py
index 270e81795..65c893ad7 100644
--- a/pyload/network/HTTPDownload.py
+++ b/pyload/network/HTTPDownload.py
@@ -19,7 +19,7 @@ class HTTPDownload(object):
""" loads a url http + ftp """
def __init__(self, url, filename, get={}, post={}, referer=None, cj=None, bucket=None,
- options={}, progressNotify=None, disposition=False):
+ options={}, progress=None, disposition=False):
self.url = url
self.filename = filename #complete file destination, not only name
self.get = get
@@ -55,7 +55,7 @@ class HTTPDownload(object):
self.speeds = []
self.lastSpeeds = [0, 0]
- self.progressNotify = progressNotify
+ self.progress = progress
@property
def speed(self):
@@ -280,8 +280,8 @@ class HTTPDownload(object):
self._copyChunks()
def updateProgress(self):
- if self.progressNotify:
- self.progressNotify(self.percent)
+ if self.progress:
+ self.progress(self.percent)
def findChunk(self, handle):
""" linear search to find a chunk (should be ok since chunk size is usually low) """