another potential issue? :/

This commit is contained in:
tidusjar 2017-10-03 23:03:41 +01:00
commit 9f82281744

View file

@ -165,7 +165,7 @@ namespace Ombi.Schedule.Jobs.Plex
}
if (content.viewGroup.Equals(Jobs.PlexContentCacher.PlexMediaType.Movie.ToString(), StringComparison.CurrentCultureIgnoreCase))
{
foreach (var movie in content.Metadata)
foreach (var movie in content?.Metadata ?? new Metadata[]{})
{
// Let's check if we have this movie
var existing = await Repo.GetByKey(movie.ratingKey);