summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/AndroidPhoneNotify.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hooks/AndroidPhoneNotify.py')
-rw-r--r--module/plugins/hooks/AndroidPhoneNotify.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hooks/AndroidPhoneNotify.py b/module/plugins/hooks/AndroidPhoneNotify.py
index e6ddac546..ce3ac9b4c 100644
--- a/module/plugins/hooks/AndroidPhoneNotify.py
+++ b/module/plugins/hooks/AndroidPhoneNotify.py
@@ -49,7 +49,7 @@ class AndroidPhoneNotify(Addon):
if not self.get_config('notifyexit'):
return
- if self.core.do_restart:
+ if self.pyload.do_restart:
self.notify(_("Restarting pyLoad"))
else:
self.notify(_("Exiting pyLoad"))
@@ -71,7 +71,7 @@ class AndroidPhoneNotify(Addon):
if not self.get_config('notifyprocessed'):
return
- if any(True for pdata in self.core.api.getQueue() if pdata.linksdone < pdata.linkstotal):
+ if any(True for pdata in self.pyload.api.getQueue() if pdata.linksdone < pdata.linkstotal):
self.notify(_("Package failed"), _("One or more packages was not completed successfully"))
else:
self.notify(_("All packages finished"))
@@ -87,7 +87,7 @@ class AndroidPhoneNotify(Addon):
if not key:
return
- if self.core.isClientConnected() and not self.get_config('ignoreclient'):
+ if self.pyload.isClientConnected() and not self.get_config('ignoreclient'):
return
elapsed_time = time.time() - self.last_notify