1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-13 11:32:20 -05:00

Pushover - remove hard-coded API key, add API register link to UI.

This commit is contained in:
Mark Rawson 2014-06-19 00:11:20 +01:00
parent 3f78f88c78
commit abb7c78dac
2 changed files with 2 additions and 3 deletions

View File

@ -752,7 +752,7 @@
</label>
<label class="nocheck clearfix">
<span class="component-title">&nbsp;</span>
<span class="component-desc">Leave blank to use default API key</span>
<span class="component-desc"><a href="https://pushover.net/apps/clone/sickrage" rel="noreferrer" onclick="window.open('${sickbeard.ANON_REDIRECT}' + this.href, '_blank'); return false;">Click here</a> to create a Pushover API key</span>
</label>
</div>
<div class="testNotification" id="testPushover-result">Click below to test.</div>

View File

@ -28,12 +28,11 @@ from sickbeard.common import notifyStrings, NOTIFY_SNATCH, NOTIFY_DOWNLOAD, NOTI
from sickbeard.exceptions import ex
API_URL = "https://api.pushover.net/1/messages.json"
API_KEY = "awKfdt263PLaEWV9RXuSn4c46qoAyA"
class PushoverNotifier:
def test_notify(self, userKey=None, apiKey=None):
return self._notifyPushover("This is a test notification from SickRage", 'Test', userKey, force=True)
return self._notifyPushover("This is a test notification from SickRage", 'Test', userKey, apiKey, force=True)
def _sendPushover(self, msg, title, userKey=None, apiKey=None):
"""