mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 19:38:20 -07:00
feat(mediainfo): add external, forced and default attributes to subtitle and audio
This commit is contained in:
parent
9d3a12237a
commit
52919e3fe8
@ -143,10 +143,8 @@ import template from './itemMediaInfo.template.html';
|
|||||||
if (stream.NalLengthSize) {
|
if (stream.NalLengthSize) {
|
||||||
attributes.push(createAttribute('NAL', stream.NalLengthSize));
|
attributes.push(createAttribute('NAL', stream.NalLengthSize));
|
||||||
}
|
}
|
||||||
if (stream.Type !== 'Video') {
|
if (stream.Type === 'Subtitle' || stream.Type === 'Audio') {
|
||||||
attributes.push(createAttribute(globalize.translate('MediaInfoDefault'), (stream.IsDefault ? 'Yes' : 'No')));
|
attributes.push(createAttribute(globalize.translate('MediaInfoDefault'), (stream.IsDefault ? 'Yes' : 'No')));
|
||||||
}
|
|
||||||
if (stream.Type === 'Subtitle') {
|
|
||||||
attributes.push(createAttribute(globalize.translate('MediaInfoForced'), (stream.IsForced ? 'Yes' : 'No')));
|
attributes.push(createAttribute(globalize.translate('MediaInfoForced'), (stream.IsForced ? 'Yes' : 'No')));
|
||||||
attributes.push(createAttribute(globalize.translate('MediaInfoExternal'), (stream.IsExternal ? 'Yes' : 'No')));
|
attributes.push(createAttribute(globalize.translate('MediaInfoExternal'), (stream.IsExternal ? 'Yes' : 'No')));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user