diff options
| author | 2015-03-22 16:43:56 +0100 | |
|---|---|---|
| committer | 2015-03-22 16:43:56 +0100 | |
| commit | b22cd145c22439805fdcb43292df45607e0c760b (patch) | |
| tree | db303b26b6664faf1c28433b71e026d41fd52bb6 /module/plugins | |
| parent | [UpdateManager] Fix https://github.com/pyload/pyload/issues/1274 (diff) | |
| parent | [AntiVirus] Typo & Remove Comment within Array (diff) | |
| download | pyload-b22cd145c22439805fdcb43292df45607e0c760b.tar.xz | |
Merge pull request #1276 from immenz/Branch_AntiVir
[AntiVirus] Typo & Remove Comment within Array
Diffstat (limited to 'module/plugins')
| -rw-r--r-- | module/plugins/hooks/AntiVirus.py | 7 | 
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  | 
