Fixed: Daily series won't get treated as specials during sample checks

This commit is contained in:
Mark McDowall 2014-04-10 18:32:19 -07:00
parent fe3351e7ac
commit ceb06378ad
2 changed files with 10 additions and 1 deletions

View File

@ -123,6 +123,15 @@ namespace NzbDrone.Core.Test.MediaFiles.EpisodeImport
ShouldBeTrue();
}
[Test]
public void should_not_treat_daily_episode_a_special()
{
GivenRuntime(600);
_series.SeriesType = SeriesTypes.Daily;
_localEpisode.Episodes[0].SeasonNumber = 0;
ShouldBeFalse();
}
private void ShouldBeTrue()
{
Subject.IsSample(_localEpisode.Series,

View File

@ -36,7 +36,7 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport
public bool IsSample(Series series, QualityModel quality, string path, long size, int seasonNumber)
{
if (seasonNumber == 0)
if (seasonNumber == 0 && series.SeriesType == SeriesTypes.Standard)
{
_logger.Debug("Special, skipping sample check");
return false;