mirror of
https://github.com/Radarr/Radarr
synced 2024-12-25 01:11:43 +00:00
Fixed: Don't delete folder if indeterminate sample detected
This commit is contained in:
parent
fd5113744f
commit
e10e5802f4
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue