New: PartNumber and PartCount naming tokens

This commit is contained in:
ta264
2021-06-10 21:51:12 +01:00
parent a0e2747004
commit 4d840d6f43
10 changed files with 168 additions and 13 deletions
@@ -87,6 +87,12 @@ class Naming extends Component {
standardBookFormatErrors.push({ message: 'Single Book: Invalid Format' });
}
if (examples.multiPartBookExample) {
standardBookFormatHelpTexts.push(`Multi-part Book: ${examples.multiPartBookExample}`);
} else {
standardBookFormatErrors.push({ message: 'Multi-part Book: Invalid Format' });
}
if (examples.authorFolderExample) {
authorFolderFormatHelpTexts.push(`Example: ${examples.authorFolderExample}`);
} else {
@@ -35,6 +35,14 @@ const fileNameTokens = [
{
token: '{Author.Name}.{Book.Title}.{Quality.Full}',
example: 'Author.Name.Book.Title.MP3'
},
{
token: '{Author Name} - {Book Title}{ (PartNumber)}',
example: 'Author Name - Book Title (2)'
},
{
token: '{Author Name} - {Book Title}{ (PartNumber/PartCount)}',
example: 'Author Name - Book Title (2/10)'
}
];