mirror of
https://github.com/Radarr/Radarr
synced 2025-12-06 08:28:50 +01:00
Fixed: Don't die in Collections when a collection doesn't have movies
This commit is contained in:
parent
ecfaea3885
commit
9b36404071
1 changed files with 13 additions and 10 deletions
|
|
@ -159,6 +159,8 @@ private IEnumerable<CollectionResource> MapToResource(List<MovieCollection> coll
|
|||
|
||||
allCollectionMovies.TryGetValue(collection.TmdbId, out var collectionMovies);
|
||||
|
||||
if (collectionMovies != null)
|
||||
{
|
||||
foreach (var movie in collectionMovies)
|
||||
{
|
||||
var translation = GetTranslationFromDict(tdict, movie, configLanguage);
|
||||
|
|
@ -173,6 +175,7 @@ private IEnumerable<CollectionResource> MapToResource(List<MovieCollection> coll
|
|||
|
||||
resource.Movies.Add(movieResource);
|
||||
}
|
||||
}
|
||||
|
||||
yield return resource;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue