Fixed: No media info causing an error when importing files

Fixes #2945
This commit is contained in:
Leonardo Galli
2018-08-06 19:42:33 +02:00
parent b553d8aef6
commit 409be45a19

View File

@@ -188,7 +188,7 @@ namespace NzbDrone.Core.Parser
Path = filename, Path = filename,
ParsedMovieInfo = enhanced, ParsedMovieInfo = enhanced,
ExistingFile = movie.Path.IsParentPath(filename), ExistingFile = movie.Path.IsParentPath(filename),
MediaInfo = helpers.FirstOrDefault(h => h.GetType() == typeof(MediaInfoModel)) as MediaInfoModel MediaInfo = helpers.FirstOrDefault(h => h?.GetType() == typeof(MediaInfoModel)) as MediaInfoModel
}; };
} }