Fixed: Don't delete folder if indeterminate sample detected

pull/2/head
ta264 5 years ago committed by Qstick
parent fd5113744f
commit e10e5802f4

@ -128,9 +128,7 @@ namespace NzbDrone.Core.MediaFiles
return false; return false;
} }
var size = _diskProvider.GetFileSize(videoFile); if (_detectSample.IsSample(movie, videoFile, false) != DetectSampleResult.Sample)
if (_detectSample.IsSample(movie, videoFile, false) == DetectSampleResult.NotSample)
{ {
_logger.Warn("Non-sample file detected: [{0}]", videoFile); _logger.Warn("Non-sample file detected: [{0}]", videoFile);
return false; return false;

Loading…
Cancel
Save