Fix the exception #1613

pull/1627/head
Jamie 7 years ago
parent 20f3239b94
commit 855941c770

@ -120,6 +120,7 @@ namespace Ombi.Schedule.Jobs.Plex
private async Task ProcessEpsiodes(PlexContainer episodes, IQueryable<PlexEpisode> currentEpisodes) private async Task ProcessEpsiodes(PlexContainer episodes, IQueryable<PlexEpisode> currentEpisodes)
{ {
var ep = new HashSet<PlexEpisode>(); var ep = new HashSet<PlexEpisode>();
foreach (var episode in episodes?.MediaContainer?.Metadata ?? new Metadata[]{}) 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? // 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?

Loading…
Cancel
Save