From 855941c770acd17aa2fb6ebd659443bab3b7b4ac Mon Sep 17 00:00:00 2001 From: Jamie Date: Thu, 26 Oct 2017 08:37:37 +0100 Subject: [PATCH] Fix the exception #1613 --- src/Ombi.Schedule/Jobs/Plex/PlexEpisodeCacher.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Ombi.Schedule/Jobs/Plex/PlexEpisodeCacher.cs b/src/Ombi.Schedule/Jobs/Plex/PlexEpisodeCacher.cs index 74443a0aa..f523d87dd 100644 --- a/src/Ombi.Schedule/Jobs/Plex/PlexEpisodeCacher.cs +++ b/src/Ombi.Schedule/Jobs/Plex/PlexEpisodeCacher.cs @@ -120,6 +120,7 @@ namespace Ombi.Schedule.Jobs.Plex private async Task ProcessEpsiodes(PlexContainer episodes, IQueryable currentEpisodes) { var ep = new HashSet(); + foreach (var episode in episodes?.MediaContainer?.Metadata ?? new Metadata[]{}) { // I don't think we need to get the metadata, we only need to get the metadata if we need the provider id (TheTvDbid). Why do we need it for episodes?