diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-12-14 03:44:18 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-12-27 20:53:53 +0100 |
commit | 48c743058bd280d62d2aa9f2db56d894b502a8d9 (patch) | |
tree | c7134030736d3361463bfa92cf06979dcdab2ceb /module/plugins/hooks/LogMarker.py | |
parent | Rename IRC and XMPP addon plugins (diff) | |
download | pyload-48c743058bd280d62d2aa9f2db56d894b502a8d9.tar.xz |
Update addons
Diffstat (limited to 'module/plugins/hooks/LogMarker.py')
-rw-r--r-- | module/plugins/hooks/LogMarker.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hooks/LogMarker.py b/module/plugins/hooks/LogMarker.py index 829db4d41..e51fa6e3d 100644 --- a/module/plugins/hooks/LogMarker.py +++ b/module/plugins/hooks/LogMarker.py @@ -2,14 +2,14 @@ import datetime -from module.plugins.internal.Addon import Addon, Expose -from module.plugins.internal.utils import seconds_to_nexthour +from module.plugins.internal.Addon import Addon +from module.plugins.internal.misc import Expose, seconds_to_nexthour class LogMarker(Addon): __name__ = "LogMarker" __type__ = "hook" - __version__ = "0.04" + __version__ = "0.05" __status__ = "testing" __config__ = [("activated", "bool", "Activated" , False), @@ -26,12 +26,12 @@ class LogMarker(Addon): def periodical(self): - if self.get_config('mark_day') and datetime.datetime.today().hour is 0: + if self.config.get('mark_day') and datetime.datetime.today().hour is 0: self.log_info("------------------------------------------------") self.log_info(_("------------------- DAY MARK -------------------")) self.log_info("------------------------------------------------") - elif self.get_config('mark_hour'): + elif self.config.get('mark_hour'): self.log_info("------------------------------------------------") self.log_info(_("------------------- HOUR MARK ------------------")) self.log_info("------------------------------------------------") |