GetEpisodesByParseResult will log a warning when an episode is daily, but series isn't.

This commit is contained in:
Mark McDowall 2011-12-19 16:45:47 -08:00
commit 77bf257132
2 changed files with 31 additions and 0 deletions

View file

@ -127,6 +127,13 @@ namespace NzbDrone.Core.Providers
if (parseResult.AirDate.HasValue)
{
if (!parseResult.Series.IsDaily)
{
//Todo: Collect this as a Series we want to treat as a daily series, or possible parsing error
Logger.Warn("Found daily-style episode for non-daily series: {0}", parseResult.Series.Title);
return new List<Episode>();
}
var episodeInfo = GetEpisode(parseResult.Series.SeriesId, parseResult.AirDate.Value);
if (episodeInfo == null && autoAddNew)