diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-08 19:48:42 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-08 19:48:42 +0200 |
commit | f03788c6e215509793655688044ba34d3dfd9d40 (patch) | |
tree | 6ac41ba0a4abceb4ec3bcbeee00f7dd43570e735 /module/plugins/hooks | |
parent | debug prints (diff) | |
download | pyload-f03788c6e215509793655688044ba34d3dfd9d40.tar.xz |
unrar cpu priority
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r-- | module/plugins/hooks/UnRar.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/hooks/UnRar.py b/module/plugins/hooks/UnRar.py index 48e69ead9..88da0b64d 100644 --- a/module/plugins/hooks/UnRar.py +++ b/module/plugins/hooks/UnRar.py @@ -37,7 +37,8 @@ class UnRar(Hook): ("overwrite", "bool", "overwrite files", True), ("passwordfile", "str", "unrar passoword file", "unrar_passwords.txt"), ("deletearchive", "bool", "delete archives when done", False), - ("ramwarning", "bool", "warn about low ram", True)] + ("ramwarning", "bool", "warn about low ram", True), + ("renice", "int", "Cpu Priority", 10)] __threaded__ = ["packageFinished"] __author_name__ = ("mkaay") __author_mail__ = ("mkaay@mkaay.de") @@ -127,7 +128,7 @@ class UnRar(Hook): else: folder = download_folder - u = Unrar(join(folder, fname), tmpdir=join(folder, "tmp"), ramSize=(self.ram if self.getConfig("ramwarning") else 0)) + u = Unrar(join(folder, fname), tmpdir=join(folder, "tmp"), ramSize=(self.ram if self.getConfig("ramwarning") else 0), cpu=self.getConfig("renice")) try: success = u.crackPassword(passwords=self.passwords, statusFunction=s, overwrite=True, destination=folder, fullPath=self.getConfig("fullpath")) except WrongPasswordError: |