mirror of
https://github.com/Radarr/Radarr
synced 2025-03-11 06:33:16 +00:00
Fix subtitle aggregation for not populated movie (#10406)
This commit is contained in:
parent
e688dfadf7
commit
b6b7d30fc1
2 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue