1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 02:22:31 +01:00

Fixed: Sample check has too little margin for 2 min anime with 1 minute files. Lowered to 15 sec.

This commit is contained in:
Taloth Saldono 2017-04-10 17:46:08 +02:00
parent b485bdaeec
commit b63bcd16a7
2 changed files with 24 additions and 0 deletions

View File

@ -121,6 +121,24 @@ public void should_return_false_if_runtime_greater_than_webisode_minimum()
ShouldBeFalse();
}
[Test]
public void should_return_false_if_runtime_greater_than_anime_short_minimum()
{
_series.Runtime = 2;
GivenRuntime(60);
ShouldBeFalse();
}
[Test]
public void should_return_true_if_runtime_less_than_anime_short_minimum()
{
_series.Runtime = 2;
GivenRuntime(10);
ShouldBeTrue();
}
[Test]
public void should_fall_back_to_file_size_if_mediainfo_dll_not_found_acceptable_size()
{

View File

@ -100,6 +100,12 @@ private bool CheckSize(long size, QualityModel quality)
private int GetMinimumAllowedRuntime(Series series)
{
//Anime short - 15 seconds
if (series.Runtime <= 3)
{
return 15;
}
//Webisodes - 90 seconds
if (series.Runtime <= 10)
{