From 6887e790c82ea2b7b745d603f42d744ac8af52cd Mon Sep 17 00:00:00 2001 From: Claus Vium Date: Fri, 8 Feb 2019 14:39:01 +0100 Subject: [PATCH] Minor fixes in MissingEpisodeProvider --- MediaBrowser.Providers/TV/MissingEpisodeProvider.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/MediaBrowser.Providers/TV/MissingEpisodeProvider.cs b/MediaBrowser.Providers/TV/MissingEpisodeProvider.cs index f2ab0d42d0..0e0b05156d 100644 --- a/MediaBrowser.Providers/TV/MissingEpisodeProvider.cs +++ b/MediaBrowser.Providers/TV/MissingEpisodeProvider.cs @@ -43,12 +43,10 @@ namespace MediaBrowser.Providers.TV public async Task Run(Series series, bool addNewItems, CancellationToken cancellationToken) { var tvdbId = series.GetProviderId(MetadataProviders.Tvdb); - - // Todo: Support series by imdb id - var seriesProviderIds = new Dictionary(StringComparer.OrdinalIgnoreCase) + if (string.IsNullOrEmpty(tvdbId)) { - [MetadataProviders.Tvdb.ToString()] = tvdbId - }; + return false; + } var episodes = await TvDbClientManager.Instance.GetAllEpisodesAsync(Convert.ToInt32(tvdbId), cancellationToken); @@ -59,7 +57,7 @@ namespace MediaBrowser.Providers.TV return new ValueTuple( i.AiredSeason.GetValueOrDefault(-1), i.AiredEpisodeNumber.GetValueOrDefault(-1), firstAired); }) - .Where(i => i.Item2 != -1 && i.Item2 != -1) + .Where(i => i.Item1 != -1 && i.Item2 != -1) .ToList(); var allRecursiveChildren = series.GetRecursiveChildren();