Fixed: Tweaked sample detection for short episodes.

pull/4/head
Taloth Saldono 9 years ago
parent c2a2746ccf
commit 006dc9202b

@ -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()
{

@ -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;
}

Loading…
Cancel
Save