Skip to content

Commit

Permalink
+ Allow Pushover users to provide their own application key (clone UR…
Browse files Browse the repository at this point in the history
  • Loading branch information
rednoah committed Mar 2, 2015
1 parent 30d1f83 commit 9e9db14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions amc.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def excludeList = tryQuietly{ (excludeList as File).isAbsolute() ? (excludeList
def myepisodes = tryQuietly{ myepisodes.split(':', 2) }
def gmail = tryQuietly{ gmail.split(':', 2) }
def mail = tryQuietly{ mail.split(':', 3) }
def pushover = tryQuietly{ pushover.toString() }
def pushover = tryQuietly{ pushover.split(':', 2) }
def pushbullet = tryQuietly{ pushbullet.toString() }
def reportError = tryQuietly{ reportError.toBoolean() }

Expand Down Expand Up @@ -451,7 +451,7 @@ if (getRenameLog().size() > 0) {
if (pushover) {
log.info 'Sending Pushover notification'
tryLogCatch {
Pushover(pushover).send(getNotificationTitle(), getNotificationMessage())
Pushover(pushover[0], pushover.length == 1 ? 'wcckDz3oygHSU2SdIptvnHxJ92SQKK' : pushover[1]).send(getNotificationTitle(), getNotificationMessage())
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/web.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Pushover
* https://pushover.net
****************************************************************************/
def Pushover(user, token = 'wcckDz3oygHSU2SdIptvnHxJ92SQKK') {
def Pushover(user, token) {
new PushoverClient(user:user, token:token)
}

Expand Down

0 comments on commit 9e9db14

Please sign in to comment.