mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
New: Colon replacement naming option
(cherry picked from commit b3260ba8661f3b2c6996eee7e04974e8f41365d5)
This commit is contained in:
parent
35248c277d
commit
b6967aed47
8 changed files with 219 additions and 19 deletions
|
@ -87,6 +87,15 @@ class Naming extends Component {
|
|||
} = this.state;
|
||||
|
||||
const renameTracks = hasSettings && settings.renameTracks.value;
|
||||
const replaceIllegalCharacters = hasSettings && settings.replaceIllegalCharacters.value;
|
||||
|
||||
const colonReplacementOptions = [
|
||||
{ key: 0, value: translate('Delete') },
|
||||
{ key: 1, value: translate('ReplaceWithDash') },
|
||||
{ key: 2, value: translate('ReplaceWithSpaceDash') },
|
||||
{ key: 3, value: translate('ReplaceWithSpaceDashSpace') },
|
||||
{ key: 4, value: translate('SmartReplace'), hint: translate('DashOrSpaceDashDependingOnName') }
|
||||
];
|
||||
|
||||
const standardTrackFormatHelpTexts = [];
|
||||
const standardTrackFormatErrors = [];
|
||||
|
@ -160,6 +169,24 @@ class Naming extends Component {
|
|||
/>
|
||||
</FormGroup>
|
||||
|
||||
{
|
||||
replaceIllegalCharacters ?
|
||||
<FormGroup>
|
||||
<FormLabel>
|
||||
{translate('ColonReplacement')}
|
||||
</FormLabel>
|
||||
|
||||
<FormInputGroup
|
||||
type={inputTypes.SELECT}
|
||||
name="colonReplacementFormat"
|
||||
values={colonReplacementOptions}
|
||||
onChange={onInputChange}
|
||||
{...settings.colonReplacementFormat}
|
||||
/>
|
||||
</FormGroup> :
|
||||
null
|
||||
}
|
||||
|
||||
{
|
||||
renameTracks &&
|
||||
<div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue