Skip to content

Commit

Permalink
Only show IsAVC for video streams
Browse files Browse the repository at this point in the history
  • Loading branch information
Bond-009 committed Aug 30, 2024
1 parent 957c1d0 commit 6c63dc8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/itemMediaInfo/itemMediaInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ function getMediaSourceHtml(user, item, version) {
if (stream.CodecTag) {
attributes.push(createAttribute(globalize.translate('MediaInfoCodecTag'), stream.CodecTag));
}
if (stream.IsAVC != null) {
attributes.push(createAttribute('AVC', (stream.IsAVC ? 'Yes' : 'No')));
if (stream.Type === 'Video') {

Check failure on line 110 in src/components/itemMediaInfo/itemMediaInfo.js

View workflow job for this annotation

GitHub Actions / Run eslint

Merge this if statement with the nested one
if (stream.IsAVC != null) {
attributes.push(createAttribute('AVC', (stream.IsAVC ? 'Yes' : 'No')));
}
}
if (stream.Profile) {
attributes.push(createAttribute(globalize.translate('MediaInfoProfile'), stream.Profile));
Expand Down

0 comments on commit 6c63dc8

Please sign in to comment.