The Free Software Media System - Server Backend & API
Album gain (#10085)
TelepathicWalrus4c7fb8f45268
diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.csindex 7a6ed2cb80..6d27703bdc 100644--- a/Emby.Server.Implementations/Dto/DtoService.cs+++ b/Emby.Server.Implementations/Dto/DtoService.cs@@ -903,10 +903,11 @@ namespace Emby.Server.Implementations.Dtodto.IsPlaceHolder = supportsPlaceHolders.IsPlaceHolder;}+ dto.LUFS = item.LUFS;+// Add audio infoif (item is Audio audio){- dto.LUFS = audio.LUFS;dto.Album = audio.Album;if (audio.ExtraType.HasValue){diff --git a/MediaBrowser.Controller/Entities/Audio/MusicAlbum.cs b/MediaBrowser.Controller/Entities/Audio/MusicAlbum.csindex 2dbd513a17..237345206f 100644--- a/MediaBrowser.Controller/Entities/Audio/MusicAlbum.cs+++ b/MediaBrowser.Controller/Entities/Audio/MusicAlbum.cs@@ -183,6 +183,9 @@ namespace MediaBrowser.Controller.Entities.Audioprogress.Report(percent * 95);}+ // get album LUFS+ LUFS = items.OfType<Audio>().Max(item => item.LUFS);+var parentRefreshOptions = refreshOptions;if (childUpdateType > ItemUpdateType.None){