Extend Qualities and Setup Default Groups (#127)

* Extend Qualities and Setup Default Groups

* fixup! Extend Qualities

* fixup! Codacy

* fixup! One more
This commit is contained in:
Qstick 2017-11-20 19:20:21 -05:00 committed by GitHub
parent ead0b7a2f4
commit 10b8174726
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 1057 additions and 275 deletions

View file

@ -7,6 +7,7 @@ function MediaInfo(props) {
type,
audioChannels,
audioCodec,
audioBitRate,
videoCodec
} = props;
@ -27,6 +28,16 @@ function MediaInfo(props) {
!!audioChannels &&
audioChannels.toFixed(1)
}
{
((!!audioCodec && !!audioBitRate) || (!!audioChannels && !!audioBitRate)) &&
' - '
}
{
!!audioBitRate &&
audioBitRate
}
</span>
);
}
@ -46,6 +57,7 @@ MediaInfo.propTypes = {
type: PropTypes.string.isRequired,
audioChannels: PropTypes.number,
audioCodec: PropTypes.string,
audioBitRate: PropTypes.string,
videoCodec: PropTypes.string
};