Fixed: Handling movies with empty IMDB IDs in lists clean library

This commit is contained in:
Michael Peleshenko 2025-06-07 04:35:44 -04:00 committed by GitHub
parent ac33b15048
commit a95b1f2992
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -196,7 +196,9 @@ private void CleanLibrary()
foreach (var movie in moviesInLibrary)
{
var movieExists = listMovies.Any(c => c.TmdbId == movie.TmdbId || c.ImdbId == movie.ImdbId);
var movieExists = listMovies.Any(c =>
c.TmdbId == movie.TmdbId ||
(c.ImdbId.IsNotNullOrWhiteSpace() && movie.ImdbId.IsNotNullOrWhiteSpace() && c.ImdbId == movie.ImdbId));
if (!movieExists)
{