From 664b97249458478f8fe1df6ea115dc3dcd158de3 Mon Sep 17 00:00:00 2001 From: Chaz Harris <16189570+Shadowalker125@users.noreply.github.com> Date: Sun, 16 Feb 2025 13:03:41 -0600 Subject: [PATCH] Fixed: Custom Lists using only ArtistMusicBrainzId (#5399) When using a JSON list that consists of only MusicBrainzId's the list is being filtered. --- .../ImportLists/FetchAndParseImportListService.cs | 4 ++-- src/NzbDrone.Core/ImportLists/ImportListBase.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core/ImportLists/FetchAndParseImportListService.cs b/src/NzbDrone.Core/ImportLists/FetchAndParseImportListService.cs index 382b76727..b029f50bf 100644 --- a/src/NzbDrone.Core/ImportLists/FetchAndParseImportListService.cs +++ b/src/NzbDrone.Core/ImportLists/FetchAndParseImportListService.cs @@ -86,7 +86,7 @@ namespace NzbDrone.Core.ImportLists Task.WaitAll(taskList.ToArray()); - result = result.DistinctBy(r => new { r.Artist, r.Album }).ToList(); + result = result.DistinctBy(r => new { r.Artist, r.Album, r.ArtistMusicBrainzId }).ToList(); _logger.Debug("Found {0} total reports from {1} lists", result.Count, importLists.Count); @@ -135,7 +135,7 @@ namespace NzbDrone.Core.ImportLists Task.WaitAll(taskList.ToArray()); - result = result.DistinctBy(r => new { r.Artist, r.Album }).ToList(); + result = result.DistinctBy(r => new { r.Artist, r.Album, r.ArtistMusicBrainzId }).ToList(); return result; } diff --git a/src/NzbDrone.Core/ImportLists/ImportListBase.cs b/src/NzbDrone.Core/ImportLists/ImportListBase.cs index 044d546c1..ec38f5081 100644 --- a/src/NzbDrone.Core/ImportLists/ImportListBase.cs +++ b/src/NzbDrone.Core/ImportLists/ImportListBase.cs @@ -64,7 +64,7 @@ namespace NzbDrone.Core.ImportLists protected virtual IList CleanupListItems(IEnumerable releases) { - var result = releases.DistinctBy(r => new { r.Artist, r.Album }).ToList(); + var result = releases.DistinctBy(r => new { r.Artist, r.Album, r.ArtistMusicBrainzId }).ToList(); result.ForEach(c => {