1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

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 @@ public void should_fall_back_to_file_size_if_mediainfo_dll_not_found_undersize()
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 @@ public static long SampleSizeLimit
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;