1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-11-06 09:19:38 +02:00

Fixed: Skip sample check when rescanning series folder

This commit is contained in:
Mark McDowall
2018-08-19 09:23:34 -07:00
parent baf8f6cca6
commit 63ea1f1afd

View File

@@ -61,7 +61,9 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport
downloadClientItemInfo = Parser.Parser.ParseTitle(downloadClientItem.Title);
}
var nonSampleVideoFileCount = GetNonSampleVideoFileCount(newFiles, series, downloadClientItemInfo, folderInfo);
// If not importing from a scene source (series folder for example), then assume all files are not samples
// to avoid using media info on every file needlessly (especially if Analyse Media Files is disabled).
var nonSampleVideoFileCount = sceneSource ? GetNonSampleVideoFileCount(newFiles, series, downloadClientItemInfo, folderInfo) : videoFiles.Count;
var decisions = new List<ImportDecision>();