mirror of
https://github.com/sphildreth/roadie
synced 2024-11-10 06:44:12 +00:00
play work
This commit is contained in:
parent
c3da91765a
commit
e8cfadb10c
2 changed files with 3 additions and 0 deletions
|
@ -116,6 +116,8 @@ namespace Roadie.Library.Models.Pagination
|
|||
public string FilterByGenre { get; set; }
|
||||
public Guid?[] FilterToTrackIds { get; set; }
|
||||
|
||||
public bool IsHistoryRequest { get; set; }
|
||||
|
||||
public PagedRequest()
|
||||
{ }
|
||||
|
||||
|
|
|
@ -242,6 +242,7 @@ namespace Roadie.Api.Services
|
|||
where (!request.FilterTopPlayedOnly || topTrackids.Contains(t.Id))
|
||||
where (randomTrackIds == null || randomTrackIds.Contains(t.Id))
|
||||
where (request.FilterToArtistId == null || request.FilterToArtistId != null && ((t.TrackArtist != null && t.TrackArtist.RoadieId == request.FilterToArtistId) || r.Artist.RoadieId == request.FilterToArtistId))
|
||||
where (!request.IsHistoryRequest || t.PlayedCount > 0)
|
||||
select new
|
||||
{
|
||||
ti = new
|
||||
|
|
Loading…
Reference in a new issue