mirror of
https://github.com/Lidarr/Lidarr
synced 2026-01-24 00:12:16 +01:00
Merge 454620231e into f6a3e73705
This commit is contained in:
commit
de8be6e1fe
2 changed files with 6 additions and 1 deletions
|
|
@ -111,7 +111,8 @@ const trackTokens = [
|
|||
];
|
||||
|
||||
const releaseDateTokens = [
|
||||
{ token: '{Release Year}', example: '2016' }
|
||||
{ token: '{Release Year}', example: '2016' },
|
||||
{ token: '{Release Date}', example: '2016-01-31' }
|
||||
];
|
||||
|
||||
const trackTitleTokens = [
|
||||
|
|
|
|||
|
|
@ -340,6 +340,10 @@ private void AddAlbumTokens(Dictionary<string, Func<TokenMatch, string>> tokenHa
|
|||
tokenHandlers["{Release Year}"] = album.ReleaseDate.HasValue
|
||||
? m => album.ReleaseDate.Value.Year.ToString()
|
||||
: m => "Unknown";
|
||||
|
||||
tokenHandlers["{Release Date}"] = album.ReleaseDate.HasValue
|
||||
? m => album.ReleaseDate.Value.ToString("yyyy-MM-dd")
|
||||
: m => "Unknown";
|
||||
}
|
||||
|
||||
private void AddMediumTokens(Dictionary<string, Func<TokenMatch, string>> tokenHandlers, Medium medium)
|
||||
|
|
|
|||
Loading…
Reference in a new issue