New: Author SortName token

pull/1064/head
ta264 4 years ago
parent 63cfec517d
commit 23772ce312

@ -45,6 +45,8 @@ const authorTokens = [
{ token: '{Author CleanName}', example: 'Author Name' },
{ token: '{Author SortName}', example: 'Name, Author' },
{ token: '{Author Disambiguation}', example: 'Disambiguation' }
];

@ -233,6 +233,7 @@ namespace NzbDrone.Core.Organizer
tokenHandlers["{Author Name}"] = m => author.Name;
tokenHandlers["{Author CleanName}"] = m => CleanTitle(author.Name);
tokenHandlers["{Author NameThe}"] = m => TitleThe(author.Name);
tokenHandlers["{Author SortName}"] = m => author.Name.ToSortName();
if (author.Metadata.Value.Disambiguation != null)
{

Loading…
Cancel
Save