From 462ed4e27d4d64e35cb0024d196eb8c564738218 Mon Sep 17 00:00:00 2001 From: JQ <81431263+scampower3@users.noreply.github.com> Date: Sun, 3 Nov 2024 23:09:29 +0800 Subject: [PATCH] Fix orphaned episodes deletion (#195) --- Jellyfin.Plugin.Tvdb/Providers/TvdbMissingEpisodeProvider.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Jellyfin.Plugin.Tvdb/Providers/TvdbMissingEpisodeProvider.cs b/Jellyfin.Plugin.Tvdb/Providers/TvdbMissingEpisodeProvider.cs index 03d1f32..6996cf5 100644 --- a/Jellyfin.Plugin.Tvdb/Providers/TvdbMissingEpisodeProvider.cs +++ b/Jellyfin.Plugin.Tvdb/Providers/TvdbMissingEpisodeProvider.cs @@ -235,6 +235,7 @@ await GetAllEpisodes(tvdbId, series.DisplayOrder, season.GetPreferredMetadataLan } var orphanedEpisodes = existingEpisodes + .Where(e => e.ParentIndexNumber == season.IndexNumber) .Where(e => e.IsVirtualItem) .Where(e => !seasonEpisodes.Any(episodeRecord => EpisodeEquals(e, episodeRecord))) .ToList();