1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-08-13 16:53:54 -04:00

Fixes notification about XBMC host not being passed. Fixes echel0n/SickRage#389

This commit is contained in:
Michael Johnson 2014-05-05 18:20:49 -04:00
parent b33e2be047
commit 4c5ea1a5eb

View File

@ -37,7 +37,11 @@ class PLEXNotifier(XBMCNotifier):
def _notify_pmc(self, message, title="Sick Beard", host=None, username=None, password=None, force=False):
# fill in omitted parameters
if not host:
host = sickbeard.PLEX_HOST
if sickbeard.PLEX_HOST:
host = sickbeard.PLEX_HOST # Use the default Plex host
else:
logger.log(u"No Plex host specified, check your settings", logger.DEBUG)
return False
if not username:
username = sickbeard.PLEX_USERNAME
if not password: