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

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 @@ public void should_return_true_if_runtime_is_less_than_minimum()
}
[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 @@ private bool CheckSize(long size, QualityModel quality)
private int GetMinimumAllowedRuntime(Series series)
{
//Webisodes - 90 seconds
if (series.Runtime <= 5)
if (series.Runtime <= 10)
{
return 90;
}