summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jens Hörnlein <jens.hoernlein@googlemail.com> 2015-03-22 16:13:48 +0100
committerGravatar Jens Hörnlein <jens.hoernlein@googlemail.com> 2015-03-22 16:14:43 +0100
commit25d7ae217d675d51110da5225e3d5c52202e8e2a (patch)
treedb303b26b6664faf1c28433b71e026d41fd52bb6
parent[UpdateManager] Fix https://github.com/pyload/pyload/issues/1274 (diff)
downloadpyload-25d7ae217d675d51110da5225e3d5c52202e8e2a.tar.xz
[AntiVirus] Typo & Remove Comment within Array
-rw-r--r--module/plugins/hooks/AntiVirus.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/hooks/AntiVirus.py b/module/plugins/hooks/AntiVirus.py
index ffed86836..6f88b982a 100644
--- a/module/plugins/hooks/AntiVirus.py
+++ b/module/plugins/hooks/AntiVirus.py
@@ -11,9 +11,10 @@ from module.utils import fs_encode, save_join
class AntiVirus(Hook):
__name__ = "AntiVirus"
__type__ = "hook"
- __version__ = "0.04"
+ __version__ = "0.05"
- __config__ = [("action" , "Antivirus default;Delete;Quarantine", "Manage infected files" , "Antivirus default"), #@TODO: add trash option (use Send2Trash lib)
+ #@TODO: add trash option (use Send2Trash lib)
+ __config__ = [("action" , "Antivirus default;Delete;Quarantine", "Manage infected files" , "Antivirus default"),
("quardir" , "folder" , "Quarantine folder" , "" ),
("scanfailed", "bool" , "Scan incompleted files (failed downloads)", False ),
("cmdfile" , "file" , "Antivirus executable" , "" ),
@@ -58,7 +59,7 @@ class AntiVirus(Hook):
if err:
self.logWarning(filename, err)
- if not self.getConfig('ignore-err')
+ if not self.getConfig('ignore-err'):
self.logDebug("Delete/Quarantine task is aborted")
return