summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-03-07 21:06:53 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-03-07 21:06:53 +0100
commit696ae23db1192f919961685f4026bb917b15868d (patch)
tree46d39cbe118c84461a04302ffeb9953d27704552 /module/plugins
parentSpare code cosmetics (diff)
downloadpyload-696ae23db1192f919961685f4026bb917b15868d.tar.xz
[AntiVirus] Missed something big! :P
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/hooks/AntiVirus.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hooks/AntiVirus.py b/module/plugins/hooks/AntiVirus.py
index 5dbc640ee..695852683 100644
--- a/module/plugins/hooks/AntiVirus.py
+++ b/module/plugins/hooks/AntiVirus.py
@@ -11,7 +11,7 @@ from module.utils import fs_encode, save_join
class AntiVirus(Hook):
__name__ = "AntiVirus"
__type__ = "hook"
- __version__ = "0.03"
+ __version__ = "0.04"
__config__ = [("action" , "Antivirus default;Delete;Quarantine", "Manage infected files" , "Antivirus default"),
("quardir" , "folder" , "Quarantine folder" , "" ),
@@ -45,7 +45,7 @@ class AntiVirus(Hook):
pyfile.setCustomStatus(_("virus scanning"))
try:
- p = subprocess.Popen([cmdfile, cmdargs], bufsize=-1, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ p = subprocess.Popen([cmdfile, cmdargs, file], bufsize=-1, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = map(str.strip, p.communicate())