Skip to content

Commit

Permalink
Fix orphaned episodes deletion (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
scampower3 authored Nov 3, 2024
1 parent 4e29126 commit 462ed4e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 462ed4e

Please sign in to comment.