mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Added test button to notification edit
This commit is contained in:
parent
38589742e3
commit
1f4cf0034e
7 changed files with 78 additions and 8 deletions
|
@ -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!");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue