|
|
@ -11,6 +11,13 @@ import FormInputGroup from 'Components/Form/FormInputGroup';
|
|
|
|
import NamingModal from './NamingModal';
|
|
|
|
import NamingModal from './NamingModal';
|
|
|
|
import styles from './Naming.css';
|
|
|
|
import styles from './Naming.css';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const colonReplacementOptions = [
|
|
|
|
|
|
|
|
{ key: 'delete', value: 'Delete' },
|
|
|
|
|
|
|
|
{ key: 'dash', value: 'Replace with Dash' },
|
|
|
|
|
|
|
|
{ key: 'spaceDash', value: 'Replace with Space Dash' },
|
|
|
|
|
|
|
|
{ key: 'spaceDashSpace', value: 'Replace with Space Dash Space' }
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
class Naming extends Component {
|
|
|
|
class Naming extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
@ -72,6 +79,7 @@ class Naming extends Component {
|
|
|
|
} = this.state;
|
|
|
|
} = this.state;
|
|
|
|
|
|
|
|
|
|
|
|
const renameMovies = hasSettings && settings.renameMovies.value;
|
|
|
|
const renameMovies = hasSettings && settings.renameMovies.value;
|
|
|
|
|
|
|
|
const replaceIllegalCharacters = hasSettings && settings.replaceIllegalCharacters.value;
|
|
|
|
|
|
|
|
|
|
|
|
const standardMovieFormatHelpTexts = [];
|
|
|
|
const standardMovieFormatHelpTexts = [];
|
|
|
|
const standardMovieFormatErrors = [];
|
|
|
|
const standardMovieFormatErrors = [];
|
|
|
@ -131,24 +139,38 @@ class Naming extends Component {
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</FormGroup>
|
|
|
|
</FormGroup>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
replaceIllegalCharacters &&
|
|
|
|
|
|
|
|
<FormGroup>
|
|
|
|
|
|
|
|
<FormLabel>Colon Replacement</FormLabel>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<FormInputGroup
|
|
|
|
|
|
|
|
type={inputTypes.SELECT}
|
|
|
|
|
|
|
|
name="colonReplacementFormat"
|
|
|
|
|
|
|
|
values={colonReplacementOptions}
|
|
|
|
|
|
|
|
helpText="Change how Radarr handles colon replacement"
|
|
|
|
|
|
|
|
onChange={onInputChange}
|
|
|
|
|
|
|
|
{...settings.colonReplacementFormat}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</FormGroup>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
renameMovies &&
|
|
|
|
renameMovies &&
|
|
|
|
<div>
|
|
|
|
<FormGroup size={sizes.LARGE}>
|
|
|
|
<FormGroup size={sizes.LARGE}>
|
|
|
|
<FormLabel>Standard Movie Format</FormLabel>
|
|
|
|
<FormLabel>Standard Movie Format</FormLabel>
|
|
|
|
|
|
|
|
|
|
|
|
<FormInputGroup
|
|
|
|
<FormInputGroup
|
|
|
|
inputClassName={styles.namingInput}
|
|
|
|
inputClassName={styles.namingInput}
|
|
|
|
type={inputTypes.TEXT}
|
|
|
|
type={inputTypes.TEXT}
|
|
|
|
name="standardMovieFormat"
|
|
|
|
name="standardMovieFormat"
|
|
|
|
buttons={<FormInputButton onPress={this.onStandardNamingModalOpenClick}>?</FormInputButton>}
|
|
|
|
buttons={<FormInputButton onPress={this.onStandardNamingModalOpenClick}>?</FormInputButton>}
|
|
|
|
onChange={onInputChange}
|
|
|
|
onChange={onInputChange}
|
|
|
|
{...settings.standardMovieFormat}
|
|
|
|
{...settings.standardMovieFormat}
|
|
|
|
helpTexts={standardMovieFormatHelpTexts}
|
|
|
|
helpTexts={standardMovieFormatHelpTexts}
|
|
|
|
errors={[...standardMovieFormatErrors, ...settings.standardMovieFormat.errors]}
|
|
|
|
errors={[...standardMovieFormatErrors, ...settings.standardMovieFormat.errors]}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</FormGroup>
|
|
|
|
</FormGroup>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
<FormGroup
|
|
|
|
<FormGroup
|
|
|
|