mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-06 04:52:21 -07: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:
parent
2b2fd5a175
commit
664b972494
2 changed files with 3 additions and 3 deletions
|
@ -86,7 +86,7 @@ namespace NzbDrone.Core.ImportLists
|
||||||
|
|
||||||
Task.WaitAll(taskList.ToArray());
|
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);
|
_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());
|
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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,7 +64,7 @@ namespace NzbDrone.Core.ImportLists
|
||||||
|
|
||||||
protected virtual IList<ImportListItemInfo> CleanupListItems(IEnumerable<ImportListItemInfo> releases)
|
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 =>
|
result.ForEach(c =>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue