mirror of
https://github.com/Readarr/Readarr
synced 2026-01-03 14:16:04 +01:00
New: Author SortName token
This commit is contained in:
parent
63cfec517d
commit
23772ce312
2 changed files with 3 additions and 0 deletions
|
|
@ -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 @@ private void AddAuthorTokens(Dictionary<string, Func<TokenMatch, string>> tokenH
|
|||
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…
Reference in a new issue