summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/addon/WindowsPhoneNotify.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-26 18:15:41 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-26 18:15:41 +0100
commit181ab47c5f775b8b48569361da6b88a801784a30 (patch)
treef5f6d1d6b75b7f21b89b33733c3536e5ca80e087 /pyload/plugin/addon/WindowsPhoneNotify.py
parentMerge branch 'stable' into 0.4.10 (diff)
downloadpyload-181ab47c5f775b8b48569361da6b88a801784a30.tar.xz
Cleanup
Diffstat (limited to 'pyload/plugin/addon/WindowsPhoneNotify.py')
-rw-r--r--pyload/plugin/addon/WindowsPhoneNotify.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/pyload/plugin/addon/WindowsPhoneNotify.py b/pyload/plugin/addon/WindowsPhoneNotify.py
index e61057f9f..341e682b2 100644
--- a/pyload/plugin/addon/WindowsPhoneNotify.py
+++ b/pyload/plugin/addon/WindowsPhoneNotify.py
@@ -3,12 +3,12 @@
import httplib
import time
-from module.plugins.Hook import Hook, Expose
+from pyload.plugin.Addon import Addon, Expose
-class WindowsPhoneNotify(Hook):
+class WindowsPhoneNotify(Addon):
__name__ = "WindowsPhoneNotify"
- __type__ = "hook"
+ __type__ = "addon"
__version__ = "0.09"
__config__ = [("id" , "str" , "Push ID" , "" ),
@@ -29,11 +29,9 @@ class WindowsPhoneNotify(Hook):
event_list = ["allDownloadsProcessed", "plugin_updated"]
- interval = 0 #@TODO: Remove in 0.4.10
def setup(self):
- self.info = {} #@TODO: Remove in 0.4.10
self.last_notify = 0
self.notifications = 0
@@ -45,7 +43,7 @@ class WindowsPhoneNotify(Hook):
self.notify(_("Plugins updated"), str(type_plugins))
- def coreExiting(self):
+ def exit(self):
if not self.getConfig('notifyexit'):
return