Added test button to notification edit

This commit is contained in:
Mark McDowall 2013-06-12 19:55:11 -07:00
commit 1f4cf0034e
7 changed files with 78 additions and 8 deletions

View file

@ -107,11 +107,16 @@ namespace NzbDrone.Core.Notifications.Xbmc
Username = message.Username,
Password = message.Password
};
Logger.Trace("Determining version of XBMC Host: {0}", settings.Address);
var version = GetJsonVersion(settings);
Logger.Trace("Version is: {0}", version);
if (version == new XbmcVersion(0))
{
throw new InvalidXbmcVersionException("Verion received from XBMC is invalid, please correct your settings.");
}
Notify(settings, "Test Notification", "Success! XBMC has been successfully configured!");
}
}