diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-28 23:08:59 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-28 23:08:59 +0200 |
commit | 2ec703256d3565e2b34c277dcee9fb80019f2f74 (patch) | |
tree | 35e1ae3d62c10b87861e59c2655360844b89f6a0 /module/plugins/hooks/AntiVirus.py | |
parent | Fix missing `encode` (diff) | |
download | pyload-2ec703256d3565e2b34c277dcee9fb80019f2f74.tar.xz |
Fix https://github.com/pyload/pyload/issues/1583
Diffstat (limited to 'module/plugins/hooks/AntiVirus.py')
-rw-r--r-- | module/plugins/hooks/AntiVirus.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hooks/AntiVirus.py b/module/plugins/hooks/AntiVirus.py index 80968c491..b6fd0ca2d 100644 --- a/module/plugins/hooks/AntiVirus.py +++ b/module/plugins/hooks/AntiVirus.py @@ -16,7 +16,7 @@ from module.utils import fs_encode, save_join as fs_join class AntiVirus(Addon): __name__ = "AntiVirus" __type__ = "hook" - __version__ = "0.11" + __version__ = "0.12" __status__ = "testing" #@TODO: add trash option (use Send2Trash lib) @@ -36,8 +36,8 @@ class AntiVirus(Addon): @Expose @threaded def scan(self, pyfile, thread): - file = fs_encode(pyfile.plugin.lastDownload) - filename = os.path.basename(pyfile.plugin.lastDownload) + file = fs_encode(pyfile.plugin.last_download) + filename = os.path.basename(pyfile.plugin.last_download) cmdfile = fs_encode(self.get_config('cmdfile')) cmdargs = fs_encode(self.get_config('cmdargs').strip()) |