Пример #1
0
        private void UpdateAndClean(Series series, bool clean = true)
        {
            try
            {
                if (Settings.UpdateLibrary)
                {
                    _xbmcService.Update(Settings, series);
                }

                if (clean && Settings.CleanLibrary)
                {
                    _xbmcService.Clean(Settings);
                }
            }
            catch (SocketException ex)
            {
                var logMessage = string.Format("Unable to connect to XBMC Host: {0}:{1}", Settings.Host, Settings.Port);
                _logger.Debug(ex, logMessage);
            }
        }
Пример #2
0
        private void UpdateAndClean(Series series, bool clean = true)
        {
            if (Settings.UpdateLibrary)
            {
                _xbmcProvider.Update(Settings, series);
            }

            if (clean && Settings.CleanLibrary)
            {
                _xbmcProvider.Clean(Settings);
            }
        }
Пример #3
0
        private void UpdateAndClean(Series series)
        {
            if (Settings.UpdateLibrary)
            {
                _xbmcProvider.Update(Settings, series);
            }

            if (Settings.CleanLibrary)
            {
                _xbmcProvider.Clean(Settings);
            }
        }