More unit tests for Plex notifications.

This commit is contained in:
Mark McDowall 2012-02-21 16:53:17 -08:00
commit 219ea364a9
2 changed files with 91 additions and 2 deletions

View file

@ -37,11 +37,11 @@ namespace NzbDrone.Core.Providers
try
{
var command = String.Format("ExecBuiltIn(Notification({0}, {1}))", header, message);
SendCommand(host, command, _configProvider.PlexUsername, _configProvider.PlexPassword);
SendCommand(host.Trim(), command, _configProvider.PlexUsername, _configProvider.PlexPassword);
}
catch(Exception ex)
{
logger.WarnException("Failed to send notification to Plex Client: " + host, ex);
logger.WarnException("Failed to send notification to Plex Client: " + host.Trim(), ex);
}
}
}