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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user