mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-30 12:28:27 +01:00
added error handling to image tag generation
This commit is contained in:
@@ -314,7 +314,7 @@ namespace MediaBrowser.Providers.Movies
|
||||
if (boxset != null)
|
||||
{
|
||||
// See if any movies have a collection id already
|
||||
return boxset.Children.OfType<Video>()
|
||||
return boxset.Children.Concat(boxset.GetLinkedChildren()).OfType<Video>()
|
||||
.Select(i => i.GetProviderId(MetadataProviders.TmdbCollection))
|
||||
.FirstOrDefault(i => i != null);
|
||||
}
|
||||
@@ -744,7 +744,7 @@ namespace MediaBrowser.Providers.Movies
|
||||
var boxset = movie as BoxSet;
|
||||
Logger.Info("MovieDbProvider - Using rating of first child of boxset...");
|
||||
|
||||
var firstChild = boxset.Children.FirstOrDefault();
|
||||
var firstChild = boxset.Children.Concat(boxset.GetLinkedChildren()).FirstOrDefault();
|
||||
|
||||
boxset.OfficialRating = firstChild != null ? firstChild.OfficialRating : null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user