diff options
author | 2015-10-08 06:32:02 +0200 | |
---|---|---|
committer | 2015-10-08 06:32:02 +0200 | |
commit | 570f37674434c7f3816e3949967c31407610da6c (patch) | |
tree | 2175692750df20384073da4a6b26ef013f1d843b /module/plugins/hooks/HotFolder.py | |
parent | New plugin: LogMarker (diff) | |
download | pyload-570f37674434c7f3816e3949967c31407610da6c.tar.xz |
Spare improvements
Diffstat (limited to 'module/plugins/hooks/HotFolder.py')
-rw-r--r-- | module/plugins/hooks/HotFolder.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hooks/HotFolder.py b/module/plugins/hooks/HotFolder.py index 6da2d5071..c7631a1fc 100644 --- a/module/plugins/hooks/HotFolder.py +++ b/module/plugins/hooks/HotFolder.py @@ -13,10 +13,11 @@ from module.utils import fs_encode, save_join as fs_join class HotFolder(Addon): __name__ = "HotFolder" __type__ = "hook" - __version__ = "0.18" + __version__ = "0.19" __status__ = "testing" - __config__ = [("folder" , "str" , "Folder to watch" , "watchdir" ), + __config__ = [("activated", "bool", "Activated" , False ), + ("folder" , "str" , "Folder to watch" , "watchdir" ), ("watchfile", "bool", "Watch link file" , False ), ("delete" , "bool", "Delete added containers", False ), ("file" , "str" , "Link file" , "links.txt")] @@ -27,8 +28,7 @@ class HotFolder(Addon): def activate(self): - self.interval = 30 - self.init_periodical(threaded=True) + self.start_periodical(30, threaded=True) def periodical(self): |