From fc7d4536ace07bb60420002c24e56be2044d81cc Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Mon, 3 Jun 2013 22:54:49 -0700 Subject: [PATCH] minor cleanup --- NzbDrone.Core/Tv/RefreshSeriesService.cs | 12 ++++++------ NzbDrone/NLog.config | 4 ++-- UI/Series/Index/SeriesIndexLayout.js | 7 ------- 3 files changed, 8 insertions(+), 15 deletions(-) diff --git a/NzbDrone.Core/Tv/RefreshSeriesService.cs b/NzbDrone.Core/Tv/RefreshSeriesService.cs index 6b96f3ed7..8822c04e1 100644 --- a/NzbDrone.Core/Tv/RefreshSeriesService.cs +++ b/NzbDrone.Core/Tv/RefreshSeriesService.cs @@ -88,7 +88,7 @@ namespace NzbDrone.Core.Tv private void RefreshEpisodeInfo(Series series, IEnumerable remoteEpisodes) { - _logger.Trace("Starting episode info refresh for series: {0}", series.Title.WithDefault(series.Id)); + _logger.Info("Starting series info refresh for: {0}", series.Title.WithDefault(series.Id)); var successCount = 0; var failCount = 0; @@ -104,12 +104,12 @@ namespace NzbDrone.Core.Tv { try { - _logger.Trace("Updating info for [{0}] - S{1:00}E{2:00}", series.Title, episode.SeasonNumber, episode.EpisodeNumber); - - var episodeToUpdate = seriesEpisodes.SingleOrDefault(e => - e.TvDbEpisodeId == episode.TvDbEpisodeId || - (e.SeasonNumber == episode.SeasonNumber && e.EpisodeNumber == episode.EpisodeNumber)); + var episodeToUpdate = seriesEpisodes.SingleOrDefault(e => e.TvDbEpisodeId == episode.TvDbEpisodeId); + if (episodeToUpdate == null) + { + episodeToUpdate = seriesEpisodes.SingleOrDefault(e => e.SeasonNumber == episode.SeasonNumber && e.EpisodeNumber == episode.EpisodeNumber); + } if (episodeToUpdate == null) { episodeToUpdate = new Episode(); diff --git a/NzbDrone/NLog.config b/NzbDrone/NLog.config index e0a2b46bf..65103a066 100644 --- a/NzbDrone/NLog.config +++ b/NzbDrone/NLog.config @@ -24,8 +24,8 @@ layout="${date:format=yy-M-d HH\:mm\:ss.f}|${level}|${logger}|${message}${onexception:inner=${newline}${newline}${exception:format=ToString}${newline}}"/> - + - + \ No newline at end of file diff --git a/UI/Series/Index/SeriesIndexLayout.js b/UI/Series/Index/SeriesIndexLayout.js index b23cb7e90..4d4ca40c3 100644 --- a/UI/Series/Index/SeriesIndexLayout.js +++ b/UI/Series/Index/SeriesIndexLayout.js @@ -143,13 +143,6 @@ define([ command : 'refreshseries', successMessage: 'Library was updated!', errorMessage : 'Library update failed!' - }, - { - title : 'Test Action', - icon : 'icon-asterisk', - command : 'test', - successMessage: 'Test Completed', - errorMessage : 'Test Failed!' } ] };