Private GIT

Skip to content
Snippets Groups Projects
Commit 2d3b41ef authored by Nic Wolfe's avatar Nic Wolfe
Browse files

Fix XBMC multiple host notifications

parent da858071
Branches
Tags
No related merge requests found
......@@ -59,20 +59,3 @@ def notify_snatch(ep_name):
for n in notifiers:
n.notify_snatch(ep_name)
notifo_notifier.notify_snatch(ep_name)
def notify(type, message):
if type == NOTIFY_DOWNLOAD and sickbeard.XBMC_NOTIFY_ONDOWNLOAD == True:
xbmc.notifyXBMC(message, notifyStrings[type])
if type == NOTIFY_SNATCH and sickbeard.XBMC_NOTIFY_ONSNATCH:
xbmc.notifyXBMC(message, notifyStrings[type])
growl.sendGrowl(notifyStrings[type], message)
prowl.sendProwl(message)
notifo.notifyNotifo(message)
if type == NOTIFY_DOWNLOAD:
tweet.notifyTwitter(message)
......@@ -130,10 +130,16 @@ class XBMCNotifier:
fileString = title + "," + input
result = ''
for curHost in [x.strip() for x in host.split(",")]:
command = {'command': 'ExecBuiltIn', 'parameter': 'Notification(' +fileString + ')' }
logger.log(u"Sending notification to XBMC via host: "+ curHost +"username: "+ username + " password: " + password, logger.DEBUG)
return self._sendToXBMC(command, curHost, username, password)
if result:
result += ', '
result += curHost + ':' + self._sendToXBMC(command, curHost, username, password)
return result
def _update_library(self, host, showName=None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment