1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-26 22:46:53 -04:00

Fixed: Also scan media info when file is being imported (i.e. not an existing file)

Fixes #2956
This commit is contained in:
Leonardo Galli
2018-08-12 17:29:29 +02:00
parent 253546ded0
commit efb4127c35
2 changed files with 19 additions and 16 deletions
@@ -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();