Fixed: Tweaked sample detection for short episodes.

This commit is contained in:
Taloth Saldono 2016-06-25 22:50:16 +02:00
parent c2a2746ccf
commit 006dc9202b
2 changed files with 11 additions and 2 deletions

View File

@ -105,13 +105,22 @@ namespace NzbDrone.Core.Test.MediaFiles.EpisodeImport
}
[Test]
public void should_return_false_if_runtime_greater_than_than_minimum()
public void should_return_false_if_runtime_greater_than_minimum()
{
GivenRuntime(600);
ShouldBeFalse();
}
[Test]
public void should_return_false_if_runtime_greater_than_webisode_minimum()
{
_series.Runtime = 6;
GivenRuntime(299);
ShouldBeFalse();
}
[Test]
public void should_fall_back_to_file_size_if_mediainfo_dll_not_found_acceptable_size()
{

View File

@ -108,7 +108,7 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport
private int GetMinimumAllowedRuntime(Series series)
{
//Webisodes - 90 seconds
if (series.Runtime <= 5)
if (series.Runtime <= 10)
{
return 90;
}