Re-apply HA fork patches on upstream v12.0 #3

Merged
benvin merged 2139 commits from benvin/rebase-v12 into main 2026-09-12 12:48:36 +10:00
2 changed files with 15 additions and 0 deletions
Showing only changes of commit 9bf04df5d9 - Show all commits
@@ -1019,6 +1019,15 @@ namespace Emby.Server.Implementations.Dto
{
dto.AlbumId = albumParent.Id;
dto.AlbumPrimaryImageTag = GetTagAndFillBlurhash(dto, albumParent, ImageType.Primary);
if (albumParent.LUFS.HasValue)
{
// -18 LUFS reference, same as ReplayGain 2.0, compatible with ReplayGain 1.0
dto.AlbumNormalizationGain = -18f - albumParent.LUFS;
}
else if (albumParent.NormalizationGain.HasValue)
{
dto.AlbumNormalizationGain = albumParent.NormalizationGain;
}
}
// if (options.ContainsField(ItemFields.MediaSourceCount))
+6
View File
@@ -789,6 +789,12 @@ namespace MediaBrowser.Model.Dto
/// <value>The gain required for audio normalization.</value>
public float? NormalizationGain { get; set; }
/// <summary>
/// Gets or sets the gain required for audio normalization. This field is inherited from music album normalization gain.
/// </summary>
/// <value>The gain required for audio normalization.</value>
public float? AlbumNormalizationGain { get; set; }
/// <summary>
/// Gets or sets the current program.
/// </summary>