Add support for multipart title naming templates

This commit is contained in:
Michael Bucari-Tovo 2022-06-19 15:42:21 -06:00
parent a24c929acf
commit 45c5efffbd
18 changed files with 1500 additions and 1238 deletions

View file

@ -0,0 +1,20 @@
using System;
using System.Linq;
namespace FileManager
{
public class MetadataNamingTemplate : NamingTemplate
{
public MetadataNamingTemplate(string template) : base(template) { }
public string GetTagContents()
{
var tagValue = Template;
foreach (var r in ParameterReplacements)
tagValue = tagValue.Replace($"<{formatKey(r.Key)}>", r.Value.ToString());
return tagValue;
}
}
}