From bda432376b9942c4c85821411aef62ed9be2d665 Mon Sep 17 00:00:00 2001 From: Cody Robibero Date: Sun, 24 Mar 2024 14:28:01 -0600 Subject: [PATCH] Fix mediainfo display for lyrics and non-video --- src/components/itemMediaInfo/itemMediaInfo.js | 5 +++-- src/strings/en-us.json | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/itemMediaInfo/itemMediaInfo.js b/src/components/itemMediaInfo/itemMediaInfo.js index a6ce545ee0..0049163411 100644 --- a/src/components/itemMediaInfo/itemMediaInfo.js +++ b/src/components/itemMediaInfo/itemMediaInfo.js @@ -84,6 +84,7 @@ function getMediaSourceHtml(user, item, version) { case 'Data': case 'Subtitle': case 'Video': + case 'Lyric': translateString = stream.Type; break; case 'EmbeddedImage': @@ -145,10 +146,10 @@ function getMediaSourceHtml(user, item, version) { if (stream.BitDepth) { attributes.push(createAttribute(globalize.translate('MediaInfoBitDepth'), `${stream.BitDepth} bit`)); } - if (stream.VideoRange) { + if (stream.VideoRange && stream.Type === 'Video') { attributes.push(createAttribute(globalize.translate('MediaInfoVideoRange'), stream.VideoRange)); } - if (stream.VideoRangeType) { + if (stream.VideoRangeType && stream.Type === 'Video') { attributes.push(createAttribute(globalize.translate('MediaInfoVideoRangeType'), stream.VideoRangeType)); } if (stream.VideoDoViTitle) { diff --git a/src/strings/en-us.json b/src/strings/en-us.json index d9f502beca..13363d303f 100644 --- a/src/strings/en-us.json +++ b/src/strings/en-us.json @@ -951,6 +951,7 @@ "LogLevel.None": "None", "Logo": "Logo", "LogoScreensaver": "Logo Screensaver", + "Lyric": "Lyric", "Lyricist": "Lyricist", "ManageLibrary": "Manage library", "ManageRecording": "Manage recording",