mirror of https://github.com/Sonarr/Sonarr
Fixed: Don't check for sample for anime specials
This commit is contained in:
parent
e8aa6b5727
commit
7aee3c5ac4
|
@ -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,
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue