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); } }
private void UpdateAndClean(Series series, bool clean = true) { if (Settings.UpdateLibrary) { _xbmcProvider.Update(Settings, series); } if (clean && Settings.CleanLibrary) { _xbmcProvider.Clean(Settings); } }
private void UpdateAndClean(Series series) { if (Settings.UpdateLibrary) { _xbmcProvider.Update(Settings, series); } if (Settings.CleanLibrary) { _xbmcProvider.Clean(Settings); } }