From e10e5802f40adbd3896f6ad826f66b150e7b4406 Mon Sep 17 00:00:00 2001 From: ta264 Date: Wed, 4 Sep 2019 21:38:02 +0100 Subject: [PATCH] Fixed: Don't delete folder if indeterminate sample detected --- src/NzbDrone.Core/MediaFiles/DownloadedMovieImportService.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/NzbDrone.Core/MediaFiles/DownloadedMovieImportService.cs b/src/NzbDrone.Core/MediaFiles/DownloadedMovieImportService.cs index 87b1d0d84..b49f606d8 100644 --- a/src/NzbDrone.Core/MediaFiles/DownloadedMovieImportService.cs +++ b/src/NzbDrone.Core/MediaFiles/DownloadedMovieImportService.cs @@ -128,9 +128,7 @@ namespace NzbDrone.Core.MediaFiles 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;