From efb4127c3510a3480b5fa7059df1020896bd7fd7 Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Sun, 12 Aug 2018 17:29:29 +0200 Subject: [PATCH] Fixed: Also scan media info when file is being imported (i.e. not an existing file) Fixes #2956 --- .../.idea.NzbDrone/.idea/contentModel.xml | 33 ++++++++++--------- .../MovieImport/ImportDecisionMaker.cs | 2 +- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/src/.idea/.idea.NzbDrone/.idea/contentModel.xml b/src/.idea/.idea.NzbDrone/.idea/contentModel.xml index 5f78a1506..7bb9c32d7 100644 --- a/src/.idea/.idea.NzbDrone/.idea/contentModel.xml +++ b/src/.idea/.idea.NzbDrone/.idea/contentModel.xml @@ -1,21 +1,24 @@ - + - - - + + + - - - - + + + + + + + - + @@ -67,10 +70,10 @@ - - - - + + + + @@ -3325,7 +3328,7 @@ - + @@ -3337,7 +3340,7 @@ - + diff --git a/src/NzbDrone.Core/MediaFiles/MovieImport/ImportDecisionMaker.cs b/src/NzbDrone.Core/MediaFiles/MovieImport/ImportDecisionMaker.cs index 697ed104f..43f023951 100644 --- a/src/NzbDrone.Core/MediaFiles/MovieImport/ImportDecisionMaker.cs +++ b/src/NzbDrone.Core/MediaFiles/MovieImport/ImportDecisionMaker.cs @@ -122,7 +122,7 @@ namespace NzbDrone.Core.MediaFiles.MovieImport if (minimalInfo != null) { //TODO: make it so media info doesn't ruin the import process of a new movie - var mediaInfo = _config.EnableMediaInfo ? _videoFileInfoReader.GetMediaInfo(file) : null; + var mediaInfo = (_config.EnableMediaInfo || !movie.Path.IsParentPath(file)) ? _videoFileInfoReader.GetMediaInfo(file) : null; var size = _diskProvider.GetFileSize(file); var historyItems = _historyService.FindByDownloadId(downloadClientItem?.DownloadId ?? ""); var firstHistoryItem = historyItems.OrderByDescending(h => h.Date).FirstOrDefault();