Fix runtime issues.

Fixes #275 and #577
This commit is contained in:
Leonardo Galli 2017-02-02 17:35:00 +01:00
parent ecfe103c50
commit 55c437d980
1 changed files with 6 additions and 1 deletions

View File

@ -153,7 +153,12 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport
private int GetMinimumAllowedRuntime(Movie movie)
{
return 360; //6 minutes
if (movie.Runtime < 1)
{
return 5 * 60;
}
return movie.Runtime / 5;
}
private int GetMinimumAllowedRuntime(Series series)