diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-19 11:44:49 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-19 11:44:49 +0200 |
commit | 56389e28ba5d2f5658278bc7f486d73be747f135 (patch) | |
tree | ac51ad216508487294b15fcaebc813b3add5c393 /module/plugins/hooks/AndroidPhoneNotify.py | |
parent | Code cosmetics (3) (diff) | |
download | pyload-56389e28ba5d2f5658278bc7f486d73be747f135.tar.xz |
Rename self.core to self.pyload (plugins only)
Diffstat (limited to 'module/plugins/hooks/AndroidPhoneNotify.py')
-rw-r--r-- | module/plugins/hooks/AndroidPhoneNotify.py | 6 |
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 |