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

pull/6/head
Mark McDowall 11 years ago
parent fe3351e7ac
commit ceb06378ad

@ -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,

@ -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;

Loading…
Cancel
Save