Exemple #1
0
        public override void OnGrab(string message)
        {
            const string header = "NzbDrone [TV] - Grabbed";

            if (Settings.Notify)
            {
                _xbmcProvider.Notify(Settings, header, message);
            }
        }
Exemple #2
0
        public override void OnGrab(string message)
        {
            const string header = "Sonarr [TV] - Grabbed";

            if (Settings.Notify)
            {
                _xbmcService.Notify(Settings, header, message);
            }
        }
Exemple #3
0
 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);
     }
 }
Exemple #4
0
 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);
     }
 }