Skip to content

Commit

Permalink
fix: remove xrefs for missing tmdb episodes
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Dec 7, 2024
1 parent 2880905 commit a96d01c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shoko.Server/Providers/TMDB/TmdbLinkingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ public IReadOnlyList<CrossRef_AniDB_TMDB_Episode> MatchAnidbToTmdbEpisodes(int a
// Remove the current anidb episodes that does not overlap with the show.
var toRemove = existing.Values
.SelectMany(list => list)
.Where(xref => anidbEpisodes.ContainsKey(xref.AnidbEpisodeID) && !toSkip.Contains(xref.CrossRef_AniDB_TMDB_EpisodeID))
.Where(xref => (anidbEpisodes.ContainsKey(xref.AnidbEpisodeID) && !toSkip.Contains(xref.CrossRef_AniDB_TMDB_EpisodeID)) || (xref.TmdbShowID == tmdbShowId && !tmdbEpisodeDict.ContainsKey(xref.TmdbEpisodeID)))
.ToList();

_logger.LogDebug(
Expand Down

0 comments on commit a96d01c

Please sign in to comment.