|
|
@ -98,8 +98,9 @@ public partial class AudioNormalizationTask : IScheduledTask
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Skip albums that don't have multiple tracks, album gain is useless here
|
|
|
|
var albumTracks = ((MusicAlbum)a).Tracks.Where(x => x.IsFileProtocol).ToList();
|
|
|
|
var albumTracks = ((MusicAlbum)a).Tracks.Where(x => x.IsFileProtocol).ToList();
|
|
|
|
if (albumTracks.Count == 0)
|
|
|
|
if (albumTracks.Count <= 1)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -115,6 +116,7 @@ public partial class AudioNormalizationTask : IScheduledTask
|
|
|
|
|
|
|
|
|
|
|
|
_itemRepository.SaveItems(albums, cancellationToken);
|
|
|
|
_itemRepository.SaveItems(albums, cancellationToken);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Track gain
|
|
|
|
var tracks = _libraryManager.GetItemList(new InternalItemsQuery
|
|
|
|
var tracks = _libraryManager.GetItemList(new InternalItemsQuery
|
|
|
|
{
|
|
|
|
{
|
|
|
|
MediaTypes = [MediaType.Audio],
|
|
|
|
MediaTypes = [MediaType.Audio],
|
|
|
|