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

@ -16,8 +16,13 @@
width: 50px;
}
.audio {
composes: cell from 'Components/Table/Cells/TableRowCell.css';
width: 200px;
}
.language,
.audio,
.video,
.status {
composes: cell from 'Components/Table/Cells/TableRowCell.css';

View file

@ -167,7 +167,7 @@ class EditQualityProfileModalContent extends Component {
name="cutoff"
{...cutoff}
values={qualities}
helpText="Once this quality is reached Sonarr will no longer download episodes"
helpText="Once this quality is reached Lidarr will no longer download albums"
onChange={onCutoffChange}
/>
</FormGroup>
@ -200,7 +200,7 @@ class EditQualityProfileModalContent extends Component {
id &&
<div
className={styles.deleteButtonContainer}
title={isInUse && 'Can\'t delete a quality profile that is attached to a series'}
title={isInUse && 'Can\'t delete a quality profile that is attached to a artist'}
>
<Button
kind={kinds.DANGER}

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
};