mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-05 19:08:02 -05:00
Fixed notifier failing when it shouldn't
This commit is contained in:
parent
1908c74e96
commit
ff9c8ae82c
@ -143,7 +143,7 @@ class XBMCNotifier:
|
|||||||
command = '{"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"%s","message":"%s", "image": "%s"},"id":1}' % (
|
command = '{"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"%s","message":"%s", "image": "%s"},"id":1}' % (
|
||||||
title.encode("utf-8"), message.encode("utf-8"), self.sb_logo_url)
|
title.encode("utf-8"), message.encode("utf-8"), self.sb_logo_url)
|
||||||
notifyResult = self._send_to_xbmc_json(command, curHost, username, password)
|
notifyResult = self._send_to_xbmc_json(command, curHost, username, password)
|
||||||
if getattr(notifyResult, 'result', None):
|
if notifyResult.get('result'):
|
||||||
result += curHost + ':' + notifyResult["result"].decode(sickbeard.SYS_ENCODING)
|
result += curHost + ':' + notifyResult["result"].decode(sickbeard.SYS_ENCODING)
|
||||||
else:
|
else:
|
||||||
if sickbeard.XBMC_ALWAYS_ON or force:
|
if sickbeard.XBMC_ALWAYS_ON or force:
|
||||||
|
Loading…
Reference in New Issue
Block a user