1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Fixed: Don't delete folder if indeterminate sample detected

This commit is contained in:
ta264 2019-09-04 21:38:02 +01:00 committed by Qstick
parent fd5113744f
commit e10e5802f4

View File

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