Fixed: Don't check for sample for anime specials

pull/2/head
Mark McDowall 10 years ago
parent e8aa6b5727
commit 7aee3c5ac4

@ -143,6 +143,15 @@ namespace NzbDrone.Core.Test.MediaFiles.EpisodeImport
ShouldBeFalse();
}
[Test]
public void should_return_false_for_anime_speical()
{
_series.SeriesType = SeriesTypes.Anime;
_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 && series.SeriesType == SeriesTypes.Standard)
if (seasonNumber == 0)
{
_logger.Debug("Special, skipping sample check");
return false;

Loading…
Cancel
Save