public override void OnGrab(string message) { const string header = "NzbDrone [TV] - Grabbed"; if (Settings.Notify) { _xbmcProvider.Notify(Settings, header, message); } }
public override void OnGrab(string message) { const string header = "Sonarr [TV] - Grabbed"; if (Settings.Notify) { _xbmcService.Notify(Settings, header, message); } }
private void Notify(XbmcSettings settings, string header, string message) { try { if (Settings.Notify) { _xbmcService.Notify(Settings, header, message); } } catch (SocketException ex) { var logMessage = $"Unable to connect to PHT Host: {Settings.Host}:{Settings.Port}"; _logger.Debug(ex, logMessage); } }
private void Notify(XbmcSettings settings, string header, string message) { try { if (Settings.Notify) { _xbmcService.Notify(Settings, header, message); } } catch (SocketException ex) { var logMessage = string.Format("Unable to connect to Kodi Host: {0}:{1}", Settings.Host, Settings.Port); _logger.Debug(ex, logMessage); } }