mirror of
https://github.com/Radarr/Radarr.git
synced 2024-07-07 04:19:25 +02:00
Fixed: Don't die in Collections when a collection doesn't have movies
This commit is contained in:
parent
ecfaea3885
commit
9b36404071
@ -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 New Issue
Block a user