mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix mediainfo display for lyrics and non-video
This commit is contained in:
parent
7a57d7722b
commit
bda432376b
2 changed files with 4 additions and 2 deletions
|
@ -84,6 +84,7 @@ function getMediaSourceHtml(user, item, version) {
|
||||||
case 'Data':
|
case 'Data':
|
||||||
case 'Subtitle':
|
case 'Subtitle':
|
||||||
case 'Video':
|
case 'Video':
|
||||||
|
case 'Lyric':
|
||||||
translateString = stream.Type;
|
translateString = stream.Type;
|
||||||
break;
|
break;
|
||||||
case 'EmbeddedImage':
|
case 'EmbeddedImage':
|
||||||
|
@ -145,10 +146,10 @@ function getMediaSourceHtml(user, item, version) {
|
||||||
if (stream.BitDepth) {
|
if (stream.BitDepth) {
|
||||||
attributes.push(createAttribute(globalize.translate('MediaInfoBitDepth'), `${stream.BitDepth} bit`));
|
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));
|
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));
|
attributes.push(createAttribute(globalize.translate('MediaInfoVideoRangeType'), stream.VideoRangeType));
|
||||||
}
|
}
|
||||||
if (stream.VideoDoViTitle) {
|
if (stream.VideoDoViTitle) {
|
||||||
|
|
|
@ -951,6 +951,7 @@
|
||||||
"LogLevel.None": "None",
|
"LogLevel.None": "None",
|
||||||
"Logo": "Logo",
|
"Logo": "Logo",
|
||||||
"LogoScreensaver": "Logo Screensaver",
|
"LogoScreensaver": "Logo Screensaver",
|
||||||
|
"Lyric": "Lyric",
|
||||||
"Lyricist": "Lyricist",
|
"Lyricist": "Lyricist",
|
||||||
"ManageLibrary": "Manage library",
|
"ManageLibrary": "Manage library",
|
||||||
"ManageRecording": "Manage recording",
|
"ManageRecording": "Manage recording",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue