mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-21 23:33:00 +00:00
Filename examples specific for daily and anime naming
This commit is contained in:
parent
a641f2897a
commit
2f1793d87a
2 changed files with 75 additions and 11 deletions
|
@ -509,7 +509,6 @@ function Naming() {
|
||||||
{namingModalOptions ? (
|
{namingModalOptions ? (
|
||||||
<NamingModal
|
<NamingModal
|
||||||
isOpen={isNamingModalOpen}
|
isOpen={isNamingModalOpen}
|
||||||
advancedSettings={advancedSettings}
|
|
||||||
{...namingModalOptions}
|
{...namingModalOptions}
|
||||||
value={settings[namingModalOptions.name].value}
|
value={settings[namingModalOptions.name].value}
|
||||||
onInputChange={handleInputChange}
|
onInputChange={handleInputChange}
|
||||||
|
|
|
@ -69,20 +69,56 @@ const caseOptions: { key: TokenCase; value: string }[] = [
|
||||||
const fileNameTokens = [
|
const fileNameTokens = [
|
||||||
{
|
{
|
||||||
token:
|
token:
|
||||||
'{Series Title} - S{season:00}E{episode:00} - {Episode Title} {Quality Full}',
|
'{Series TitleYear} - S{season:00}E{episode:00} - {Episode CleanTitle} {Quality Full}',
|
||||||
example:
|
example:
|
||||||
"The Series Title's! (2010) - S01E01 - Episode Title HDTV-720p Proper",
|
"The Series Title's! (2010) - S01E01 - Episode Title WEBDL-1080p Proper",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
token:
|
token:
|
||||||
'{Series Title} - {season:0}x{episode:00} - {Episode Title} {Quality Full}',
|
'{Series TitleYear} - {season:0}x{episode:00} - {Episode CleanTitle} {Quality Full}',
|
||||||
example:
|
example:
|
||||||
"The Series Title's! (2010) - 1x01 - Episode Title HDTV-720p Proper",
|
"The Series Title's! (2010) - 1x01 - Episode Title WEBDL-1080p Proper",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
token:
|
token:
|
||||||
'{Series.Title}.S{season:00}E{episode:00}.{EpisodeClean.Title}.{Quality.Full}',
|
'{Series.CleanTitleYear}.S{season:00}E{episode:00}.{Episode.CleanTitle}.{Quality.Full}',
|
||||||
example: "The.Series.Title's!.(2010).S01E01.Episode.Title.HDTV-720p",
|
example: "The.Series.Title's!.2010.S01E01.Episode.Title.WEBDL-1080p.Proper",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
const fileNameDailyTokens = [
|
||||||
|
{
|
||||||
|
token:
|
||||||
|
'{Series TitleYear} - {Air-Date} - {Episode CleanTitle} {Quality Full}',
|
||||||
|
example:
|
||||||
|
"The Series Title's! (2010) - 2013-10-30 - Episode Title WEBDL-1080p Proper",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
token:
|
||||||
|
'{Series.CleanTitleYear}.{Air.Date}.{Episode.CleanTitle}.{Quality.Full}',
|
||||||
|
example:
|
||||||
|
"The.Series.Title's!.2010.2013.10.30.Episode.Title.WEBDL-1080p.Proper",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
const fileNameAnimeTokens = [
|
||||||
|
{
|
||||||
|
token:
|
||||||
|
'{Series TitleYear} - S{season:00}E{episode:00} - {absolute:000} - {Episode CleanTitle} {Quality Full}',
|
||||||
|
example:
|
||||||
|
"The Series Title's! (2010) - S01E01 - 001- Episode Title WEBDL-1080p Proper",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
token:
|
||||||
|
'{Series TitleYear} - {season:0}x{episode:00} - {absolute:000} - {Episode CleanTitle} {Quality Full}',
|
||||||
|
example:
|
||||||
|
"The Series Title's! (2010) - 1x01 - 001 - Episode Title WEBDL-1080p Proper",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
token:
|
||||||
|
'{Series.CleanTitleYear}.S{season:00}E{episode:00}.{absolute:000}.{Episode.CleanTitle}.{Quality.Full}',
|
||||||
|
example:
|
||||||
|
"The.Series.Title's!.2010.S01E01.001.Episode.Title.WEBDL-1080p.Proper",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -231,7 +267,6 @@ interface NamingModalProps {
|
||||||
| 'specialsFolderFormat'
|
| 'specialsFolderFormat'
|
||||||
>;
|
>;
|
||||||
value: string;
|
value: string;
|
||||||
advancedSettings: boolean;
|
|
||||||
season?: boolean;
|
season?: boolean;
|
||||||
episode?: boolean;
|
episode?: boolean;
|
||||||
daily?: boolean;
|
daily?: boolean;
|
||||||
|
@ -246,9 +281,9 @@ function NamingModal(props: NamingModalProps) {
|
||||||
isOpen,
|
isOpen,
|
||||||
name,
|
name,
|
||||||
value,
|
value,
|
||||||
advancedSettings,
|
|
||||||
season = false,
|
season = false,
|
||||||
episode = false,
|
episode = false,
|
||||||
|
daily = false,
|
||||||
anime = false,
|
anime = false,
|
||||||
additional = false,
|
additional = false,
|
||||||
onInputChange,
|
onInputChange,
|
||||||
|
@ -339,9 +374,39 @@ function NamingModal(props: NamingModalProps) {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{advancedSettings ? null : (
|
{episode ? (
|
||||||
<FieldSet legend={translate('FileNames')}>
|
<FieldSet legend={translate('FileNames')}>
|
||||||
<div className={styles.groups}>
|
<div className={styles.groups}>
|
||||||
|
{daily
|
||||||
|
? fileNameDailyTokens.map(({ token, example }) => (
|
||||||
|
<NamingOption
|
||||||
|
key={token}
|
||||||
|
token={token}
|
||||||
|
example={example}
|
||||||
|
isFullFilename={true}
|
||||||
|
tokenSeparator={tokenSeparator}
|
||||||
|
tokenCase={tokenCase}
|
||||||
|
size={sizes.LARGE}
|
||||||
|
onPress={handleOptionPress}
|
||||||
|
/>
|
||||||
|
))
|
||||||
|
: null}
|
||||||
|
|
||||||
|
{anime
|
||||||
|
? fileNameAnimeTokens.map(({ token, example }) => (
|
||||||
|
<NamingOption
|
||||||
|
key={token}
|
||||||
|
token={token}
|
||||||
|
example={example}
|
||||||
|
isFullFilename={true}
|
||||||
|
tokenSeparator={tokenSeparator}
|
||||||
|
tokenCase={tokenCase}
|
||||||
|
size={sizes.LARGE}
|
||||||
|
onPress={handleOptionPress}
|
||||||
|
/>
|
||||||
|
))
|
||||||
|
: null}
|
||||||
|
|
||||||
{fileNameTokens.map(({ token, example }) => (
|
{fileNameTokens.map(({ token, example }) => (
|
||||||
<NamingOption
|
<NamingOption
|
||||||
key={token}
|
key={token}
|
||||||
|
@ -356,7 +421,7 @@ function NamingModal(props: NamingModalProps) {
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</FieldSet>
|
</FieldSet>
|
||||||
)}
|
) : null}
|
||||||
|
|
||||||
<FieldSet legend={translate('Series')}>
|
<FieldSet legend={translate('Series')}>
|
||||||
<div className={styles.groups}>
|
<div className={styles.groups}>
|
||||||
|
|
Loading…
Reference in a new issue