mirror of
https://github.com/Lidarr/Lidarr
synced 2026-01-01 13:16:06 +01: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 @@ public List<ImportListItemInfo> Fetch()
|
|||
|
||||
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 @@ public List<ImportListItemInfo> FetchSingleList(ImportListDefinition definition)
|
|||
|
||||
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 @@ public virtual object RequestAction(string action, IDictionary<string, string> q
|
|||
|
||||
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 =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue