mirror of https://github.com/Sonarr/Sonarr
minor cleanup
This commit is contained in:
parent
8a1c6aa4d8
commit
fc7d4536ac
|
@ -88,7 +88,7 @@ namespace NzbDrone.Core.Tv
|
|||
|
||||
private void RefreshEpisodeInfo(Series series, IEnumerable<Episode> 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();
|
||||
|
|
|
@ -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}}"/>
|
||||
</targets>
|
||||
<rules>
|
||||
<logger name="*" minlevel="Debug" writeTo="consoleLogger"/>
|
||||
<logger name="*" minlevel="Trace" writeTo="consoleLogger"/>
|
||||
<logger name="*" minlevel="Off" writeTo="udpTarget"/>
|
||||
<logger name="*" minlevel="Debug" writeTo="rollingFileLogger"/>
|
||||
<logger name="*" minlevel="Info" writeTo="rollingFileLogger"/>
|
||||
</rules>
|
||||
</nlog>
|
|
@ -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!'
|
||||
}
|
||||
]
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue