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:
parent
fe3351e7ac
commit
ceb06378ad
@ -123,6 +123,15 @@ public void should_fall_back_to_file_size_if_mediainfo_dll_not_found_undersize()
|
|||||||
ShouldBeTrue();
|
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()
|
private void ShouldBeTrue()
|
||||||
{
|
{
|
||||||
Subject.IsSample(_localEpisode.Series,
|
Subject.IsSample(_localEpisode.Series,
|
||||||
|
@ -36,7 +36,7 @@ public static long SampleSizeLimit
|
|||||||
|
|
||||||
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)
|
if (seasonNumber == 0 && series.SeriesType == SeriesTypes.Standard)
|
||||||
{
|
{
|
||||||
_logger.Debug("Special, skipping sample check");
|
_logger.Debug("Special, skipping sample check");
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user