More renaming tokens

New: Always show Air Date renaming token in help modal
Fixed: Added missing media info renaming tokens
This commit is contained in:
Mark McDowall 2019-04-12 17:48:45 -07:00
parent 81c8fc0381
commit c90672a5ab
2 changed files with 29 additions and 29 deletions

View File

@ -91,9 +91,14 @@ const qualityTokens = [
const mediaInfoTokens = [ const mediaInfoTokens = [
{ token: '{MediaInfo Simple}', example: 'x264 DTS' }, { token: '{MediaInfo Simple}', example: 'x264 DTS' },
{ token: '{MediaInfo Full}', example: 'x264 DTS [EN+DE]' }, { token: '{MediaInfo Full}', example: 'x264 DTS [EN+DE]' },
{ token: '{MediaInfo VideoCodec}', example: 'x264' },
{ token: '{MediaInfo AudioCodec}', example: 'DTS' }, { token: '{MediaInfo AudioCodec}', example: 'DTS' },
{ token: '{MediaInfo AudioChannels}', example: '5.1' }, { token: '{MediaInfo AudioChannels}', example: '5.1' },
{ token: '{MediaInfo AudioLanguages}', example: '[EN+DE]' },
{ token: '{MediaInfo SubtitleLanguages}', example: '[DE]' },
{ token: '{MediaInfo VideoCodec}', example: 'x264' },
{ token: '{MediaInfo VideoBitDepth}', example: '10' },
{ token: '{MediaInfo VideoDynamicRange}', example: 'HDR' } { token: '{MediaInfo VideoDynamicRange}', example: 'HDR' }
]; ];
@ -179,7 +184,6 @@ class NamingModal extends Component {
advancedSettings, advancedSettings,
season, season,
episode, episode,
daily,
anime, anime,
additional, additional,
onInputChange, onInputChange,
@ -341,30 +345,27 @@ class NamingModal extends Component {
</div> </div>
</FieldSet> </FieldSet>
{ <FieldSet legend="Air-Date">
daily && <div className={styles.groups}>
<FieldSet legend="Air-Date"> {
<div className={styles.groups}> airDateTokens.map(({ token, example }) => {
{ return (
airDateTokens.map(({ token, example }) => { <NamingOption
return ( key={token}
<NamingOption name={name}
key={token} value={value}
name={name} token={token}
value={value} example={example}
token={token} tokenSeparator={tokenSeparator}
example={example} tokenCase={tokenCase}
tokenSeparator={tokenSeparator} onPress={this.onOptionPress}
tokenCase={tokenCase} />
onPress={this.onOptionPress} );
/> }
); )
} }
) </div>
} </FieldSet>
</div>
</FieldSet>
}
{ {
anime && anime &&

View File

@ -1,6 +1,6 @@
.option { .option {
display: flex; display: flex;
align-items: center; align-items: stretch;
flex-wrap: wrap; flex-wrap: wrap;
margin: 3px; margin: 3px;
border: 1px solid $borderColor; border: 1px solid $borderColor;
@ -17,7 +17,7 @@
} }
.small { .small {
width: 460px; width: 480px;
} }
.large { .large {
@ -34,7 +34,6 @@
.example { .example {
display: flex; display: flex;
align-items: center; align-items: center;
align-self: stretch;
flex: 0 0 50%; flex: 0 0 50%;
padding: 6px 16px; padding: 6px 16px;
background-color: #ddd; background-color: #ddd;