|
|
@ -47,7 +47,7 @@ namespace NzbDrone.Core.Notifications.Xbmc
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var failures = new List<ValidationFailure>();
|
|
|
|
var failures = new List<ValidationFailure>();
|
|
|
|
|
|
|
|
|
|
|
|
failures.AddIfNotNull(_xbmcService.Test(Settings, "Success! XBMC has been successfully configured!"));
|
|
|
|
failures.AddIfNotNull(_xbmcService.Test(Settings, "Success! Kodi has been successfully configured!"));
|
|
|
|
|
|
|
|
|
|
|
|
return new ValidationResult(failures);
|
|
|
|
return new ValidationResult(failures);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -63,7 +63,7 @@ namespace NzbDrone.Core.Notifications.Xbmc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (SocketException ex)
|
|
|
|
catch (SocketException ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var logMessage = string.Format("Unable to connect to XBMC Host: {0}:{1}", Settings.Host, Settings.Port);
|
|
|
|
var logMessage = string.Format("Unable to connect to Kodi Host: {0}:{1}", Settings.Host, Settings.Port);
|
|
|
|
_logger.Debug(ex, logMessage);
|
|
|
|
_logger.Debug(ex, logMessage);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -84,7 +84,7 @@ namespace NzbDrone.Core.Notifications.Xbmc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (SocketException ex)
|
|
|
|
catch (SocketException ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var logMessage = string.Format("Unable to connect to XBMC Host: {0}:{1}", Settings.Host, Settings.Port);
|
|
|
|
var logMessage = string.Format("Unable to connect to Kodi Host: {0}:{1}", Settings.Host, Settings.Port);
|
|
|
|
_logger.Debug(ex, logMessage);
|
|
|
|
_logger.Debug(ex, logMessage);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|