mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-15 22:05:02 -05:00
Pushover - remove hard-coded API key, add API register link to UI.
This commit is contained in:
parent
3f78f88c78
commit
abb7c78dac
@ -752,7 +752,7 @@
|
|||||||
</label>
|
</label>
|
||||||
<label class="nocheck clearfix">
|
<label class="nocheck clearfix">
|
||||||
<span class="component-title"> </span>
|
<span class="component-title"> </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>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="testNotification" id="testPushover-result">Click below to test.</div>
|
<div class="testNotification" id="testPushover-result">Click below to test.</div>
|
||||||
|
@ -28,12 +28,11 @@ from sickbeard.common import notifyStrings, NOTIFY_SNATCH, NOTIFY_DOWNLOAD, NOTI
|
|||||||
from sickbeard.exceptions import ex
|
from sickbeard.exceptions import ex
|
||||||
|
|
||||||
API_URL = "https://api.pushover.net/1/messages.json"
|
API_URL = "https://api.pushover.net/1/messages.json"
|
||||||
API_KEY = "awKfdt263PLaEWV9RXuSn4c46qoAyA"
|
|
||||||
|
|
||||||
|
|
||||||
class PushoverNotifier:
|
class PushoverNotifier:
|
||||||
def test_notify(self, userKey=None, apiKey=None):
|
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):
|
def _sendPushover(self, msg, title, userKey=None, apiKey=None):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user