Fixed: Don't check for sample for anime specials

This commit is contained in:
Mark McDowall 2014-12-12 07:39:51 -08:00
parent e8aa6b5727
commit 7aee3c5ac4
2 changed files with 10 additions and 1 deletions

View File

@ -143,6 +143,15 @@ namespace NzbDrone.Core.Test.MediaFiles.EpisodeImport
ShouldBeFalse(); ShouldBeFalse();
} }
[Test]
public void should_return_false_for_anime_speical()
{
_series.SeriesType = SeriesTypes.Anime;
_localEpisode.Episodes[0].SeasonNumber = 0;
ShouldBeFalse();
}
private void ShouldBeTrue() private void ShouldBeTrue()
{ {
Subject.IsSample(_localEpisode.Series, 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) public bool IsSample(Series series, QualityModel quality, string path, long size, int seasonNumber)
{ {
if (seasonNumber == 0 && series.SeriesType == SeriesTypes.Standard) if (seasonNumber == 0)
{ {
_logger.Debug("Special, skipping sample check"); _logger.Debug("Special, skipping sample check");
return false; return false;