diff --git a/MediaBrowser.Providers/TV/MissingEpisodeProvider.cs b/MediaBrowser.Providers/TV/MissingEpisodeProvider.cs index f2ab0d42d..0e0b05156 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();