Private GIT

Skip to content
Snippets Groups Projects
Commit 028e9183 authored by Fernando's avatar Fernando
Browse files

Merge pull request #434 from fernandog/fix_pushover

Fix pushover when notify on login
parents 45a2b1e5 51987b2b
Branches
Tags build-486
No related merge requests found
...@@ -25,7 +25,7 @@ import time ...@@ -25,7 +25,7 @@ import time
import sickbeard import sickbeard
from sickbeard import logger from sickbeard import logger
from sickbeard.common import notifyStrings, NOTIFY_SNATCH, NOTIFY_DOWNLOAD, NOTIFY_SUBTITLE_DOWNLOAD, NOTIFY_GIT_UPDATE, NOTIFY_GIT_UPDATE_TEXT from sickbeard.common import notifyStrings, NOTIFY_SNATCH, NOTIFY_DOWNLOAD, NOTIFY_SUBTITLE_DOWNLOAD, NOTIFY_GIT_UPDATE, NOTIFY_GIT_UPDATE_TEXT, NOTIFY_LOGIN_TEXT, NOTIFY_LOGIN
from sickrage.helper.exceptions import ex from sickrage.helper.exceptions import ex
API_URL = "https://api.pushover.net/1/messages.json" API_URL = "https://api.pushover.net/1/messages.json"
...@@ -153,8 +153,8 @@ class PushoverNotifier(object): ...@@ -153,8 +153,8 @@ class PushoverNotifier(object):
def notify_login(self, ipaddress=""): def notify_login(self, ipaddress=""):
if sickbeard.USE_PUSHOVER: if sickbeard.USE_PUSHOVER:
update_text = common.notifyStrings[common.NOTIFY_LOGIN_TEXT] update_text = notifyStrings[NOTIFY_LOGIN_TEXT]
title = common.notifyStrings[common.NOTIFY_LOGIN] title = notifyStrings[NOTIFY_LOGIN]
self._notifyPushover(title, update_text.format(ipaddress)) self._notifyPushover(title, update_text.format(ipaddress))
def _notifyPushover(self, title, message, sound=None, userKey=None, apiKey=None, force=False): def _notifyPushover(self, title, message, sound=None, userKey=None, apiKey=None, force=False):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment