From a97820b5784d81f4bf84a00887237287c93983ea Mon Sep 17 00:00:00 2001 From: JoeLametta Date: Sat, 15 May 2021 14:11:59 +0000 Subject: [PATCH] Add %D (disc title without disambiguation) to allowed template variables Signed-off-by: JoeLametta --- whipper/common/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/whipper/common/common.py b/whipper/common/common.py index f41704c..5e99609 100644 --- a/whipper/common/common.py +++ b/whipper/common/common.py @@ -277,9 +277,9 @@ def getRelativePath(targetPath, collectionPath): def validate_template(template, kind): """Raise exception if disc/track template includes invalid variables.""" if kind == 'disc': - matches = re.findall(r'%[^ABCRSXdrxy]', template) + matches = re.findall(r'%[^ABCDRSXdrxy]', template) elif kind == 'track': - matches = re.findall(r'%[^ABCRSXadnrstxy]', template) + matches = re.findall(r'%[^ABCDRSXadnrstxy]', template) if '%' in template and matches: raise ValueError(kind + ' template string contains invalid ' 'variable(s): {}'.format(', '.join(matches)))