Compare commits

...

2 Commits

Author SHA1 Message Date
Bond_009
32906e8a9d Make linter happy 2025-01-06 10:32:37 -05:00
Bond_009
1c13b436db Only show IsAVC for video streams 2025-01-06 10:32:37 -05:00

View File

@@ -107,7 +107,7 @@ function getMediaSourceHtml(user, item, version) {
if (stream.CodecTag) { if (stream.CodecTag) {
attributes.push(createAttribute(globalize.translate('MediaInfoCodecTag'), stream.CodecTag)); attributes.push(createAttribute(globalize.translate('MediaInfoCodecTag'), stream.CodecTag));
} }
if (stream.IsAVC != null) { if (stream.Type === 'Video' && stream.IsAVC != null) {
attributes.push(createAttribute('AVC', (stream.IsAVC ? 'Yes' : 'No'))); attributes.push(createAttribute('AVC', (stream.IsAVC ? 'Yes' : 'No')));
} }
if (stream.Profile) { if (stream.Profile) {