mirror of
https://github.com/Lidarr/Lidarr.git
synced 2026-02-09 23:38:31 -06:00
Fixed: Custom Lists using only ArtistMusicBrainzId (#5399)
When using a JSON list that consists of only MusicBrainzId's the list is being filtered.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace NzbDrone.Core.ImportLists
|
||||
|
||||
protected virtual IList<ImportListItemInfo> CleanupListItems(IEnumerable<ImportListItemInfo> 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 =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user