mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-20 01:42:35 +01:00
Fix subtitle aggregation for not populated movie (#10406)
This commit is contained in:
parent
e688dfadf7
commit
b6b7d30fc1
@ -25,7 +25,7 @@ public LocalMovie Aggregate(LocalMovie localMovie, DownloadClientItem downloadCl
|
||||
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 @@ public List<ImportResult> Import(List<ImportDecision> decisions, bool newDownloa
|
||||
movieFile = _mediaFileService.Add(movieFile);
|
||||
importResults.Add(new ImportResult(importDecision));
|
||||
|
||||
localMovie.Movie.MovieFile = movieFile;
|
||||
|
||||
if (newDownload)
|
||||
{
|
||||
if (localMovie.ScriptImported)
|
||||
|
Loading…
Reference in New Issue
Block a user