mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Fixed: Minor Cleanup
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
parent
30ac5408ca
commit
0aa3da9780
2 changed files with 9 additions and 9 deletions
|
@ -33,10 +33,9 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
|
|||
public Decision IsSatisfiedBy(RemoteAlbum subject, SearchCriteriaBase searchCriteria)
|
||||
{
|
||||
var queue = _queueService.GetQueue();
|
||||
var matchingAlbum = queue.Where(q => q.RemoteAlbum != null &&
|
||||
q.RemoteAlbum.Artist != null &&
|
||||
q.RemoteAlbum.Artist.Id == subject.Artist.Id &&
|
||||
q.RemoteAlbum.Albums.Select(e => e.Id).Intersect(subject.Albums.Select(e => e.Id)).Any())
|
||||
var matchingAlbum = queue.Where(q => q.RemoteAlbum?.Artist != null &&
|
||||
q.RemoteAlbum.Artist.Id == subject.Artist.Id &&
|
||||
q.RemoteAlbum.Albums.Select(e => e.Id).Intersect(subject.Albums.Select(e => e.Id)).Any())
|
||||
.ToList();
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue