Fix subtitle aggregation for not populated movie (#10406)

pull/10392/head
Jendrik Weise 2 months ago committed by GitHub
parent e688dfadf7
commit b6b7d30fc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -25,7 +25,7 @@ namespace NzbDrone.Core.MediaFiles.MovieImport.Aggregation.Aggregators
var path = localMovie.Path;
var isSubtitleFile = SubtitleFileExtensions.Extensions.Contains(Path.GetExtension(path));
if (!isSubtitleFile)
if (!isSubtitleFile || localMovie.Movie == null)
{
return localMovie;
}

@ -151,6 +151,8 @@ namespace NzbDrone.Core.MediaFiles.MovieImport
movieFile = _mediaFileService.Add(movieFile);
importResults.Add(new ImportResult(importDecision));
localMovie.Movie.MovieFile = movieFile;
if (newDownload)
{
if (localMovie.ScriptImported)

Loading…
Cancel
Save