1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-01-03 05:25:10 +00:00

Fixed: Sorting by Artist Name in Missing/Cutoff Unmet under Postgres

Fixes #4736
Fixes #3392
Closes #4374
This commit is contained in:
Bogdan 2024-04-08 18:14:14 +03:00
parent daf8b94c8e
commit adcec90ef8

View file

@ -102,7 +102,8 @@ private SqlBuilder AlbumsWithoutFilesBuilder(DateTime currentTime)
.Where<TrackFile>(f => f.Id == null)
.Where<AlbumRelease>(r => r.Monitored == true)
.Where<Album>(a => a.ReleaseDate <= currentTime)
.GroupBy<Album>(x => x.Id);
.GroupBy<Album>(x => x.Id)
.GroupBy<Artist>(x => x.SortName);
}
#pragma warning restore CS0472
@ -125,7 +126,8 @@ private SqlBuilder AlbumsWhereCutoffUnmetBuilder(List<QualitiesBelowCutoff> qual
.LeftJoin<Track, TrackFile>((t, f) => t.TrackFileId == f.Id)
.Where<AlbumRelease>(r => r.Monitored == true)
.Where(BuildQualityCutoffWhereClause(qualitiesBelowCutoff))
.GroupBy<Album>(x => x.Id);
.GroupBy<Album>(x => x.Id)
.GroupBy<Artist>(x => x.SortName);
}
private string BuildQualityCutoffWhereClause(List<QualitiesBelowCutoff> qualitiesBelowCutoff)