From 3518a3f3b687eae760fc8a3f8cbecbb7ac46c4f9 Mon Sep 17 00:00:00 2001 From: Jake Klingler Date: Wed, 4 Feb 2026 03:10:28 -0500 Subject: [PATCH] populate bit depth from jellyfin (#1648) --- src/shared/api/jellyfin/jellyfin-normalize.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shared/api/jellyfin/jellyfin-normalize.ts b/src/shared/api/jellyfin/jellyfin-normalize.ts index 4236d1850..af015ea35 100644 --- a/src/shared/api/jellyfin/jellyfin-normalize.ts +++ b/src/shared/api/jellyfin/jellyfin-normalize.ts @@ -139,6 +139,7 @@ const normalizeSong = ( pathReplace?: string, pathReplaceWith?: string, ): Song => { + let bitDepth: null | number = null; let bitRate = 0; let channels: null | number = null; let container: null | string = null; @@ -156,6 +157,7 @@ const normalizeSong = ( if ((source.MediaStreams?.length || 0) > 0) { for (const stream of source.MediaStreams) { if (stream.Type === 'Audio') { + bitDepth = stream.BitDepth || null; bitRate = stream.BitRate !== undefined ? Number(Math.trunc(stream.BitRate / 1000)) @@ -191,7 +193,7 @@ const normalizeSong = ( albumId: item.AlbumId || `dummy/${item.Id}`, artistName: item?.ArtistItems?.map((entry) => entry.Name).join(', ') || '', artists, - bitDepth: null, + bitDepth, bitRate, bpm: null, channels,