diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-08-02 15:17:24 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-08-02 15:17:24 +0200 |
commit | 58f38f399387b44b956e785e1d578d0f621354e6 (patch) | |
tree | 8e9a6bb9f659db8f58d73b0c416572a8212abfcf /module/plugins/hooks/UnRar.py | |
parent | youtube, new file format (diff) | |
download | pyload-58f38f399387b44b956e785e1d578d0f621354e6.tar.xz |
fixes, cleanup, summary for each package
Diffstat (limited to 'module/plugins/hooks/UnRar.py')
-rw-r--r-- | module/plugins/hooks/UnRar.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/module/plugins/hooks/UnRar.py b/module/plugins/hooks/UnRar.py index c636664ee..778ae669c 100644 --- a/module/plugins/hooks/UnRar.py +++ b/module/plugins/hooks/UnRar.py @@ -149,10 +149,9 @@ class UnRar(Hook): self.core.log.info(_("starting Unrar of %s") % fname) pyfile = self.core.files.getFile(fid) pyfile.setStatus("processing") - pyfile.progress.setRange(0, 100) def s(p): - pyfile.progress.setValue(p) + pyfile.setProgress(p) download_folder = self.core.config['general']['download_folder'] self.core.log.debug(_("download folder %s") % download_folder) @@ -237,7 +236,7 @@ class UnRar(Hook): else: self.core.log.info(_("Unrar of %s failed (wrong password or bad parts)") % fname) finally: - pyfile.progress.setValue(100) + pyfile.setProgress(100) pyfile.setStatus("finished") pyfile.release() |