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

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

            if (Settings.Notify)
            {
                _xbmcService.Notify(Settings, header, message);
            }
        }
示例#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);
     }
 }
示例#4
0
文件: Xbmc.cs 项目: Animarr/Animarr
 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);
     }
 }