diff options
author | mkaay <mkaay@mkaay.de> | 2010-12-23 11:28:03 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-12-23 11:28:03 +0100 |
commit | a4ba4ba12aff34c967f958576db40806656c3de8 (patch) | |
tree | 57a26d6559279fa4ed9c28fadfa31f4d36a7eceb /module/plugins/Plugin.py | |
parent | new download backend integrated so far, downloading works, but still big todo... (diff) | |
download | pyload-a4ba4ba12aff34c967f958576db40806656c3de8.tar.xz |
fixed eta and progress, ready for first test
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r-- | module/plugins/Plugin.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index 4af3d0d8b..0406923c0 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -331,7 +331,10 @@ class Plugin(object): name = self.pyfile.name.encode(sys.getfilesystemencoding(), "replace") filename = join(location, name) d = self.req.httpDownload(url, filename, get=get, post=post, chunks=self.getChunkCount(), resume=self.resumeDownload) + self.pyfile.download = d + d.addProgress("percent", self.pyfile.progress.setValue) waitFor(d) + self.pyfile.download = None newname = basename(filename) self.pyfile.size = self.req.dl_size |