Introduce %M, %N template variables

- %M: total number of discs in the chosen release
- %N: number of current disc

Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
This commit is contained in:
JoeLametta
2021-05-15 16:40:29 +00:00
parent 76b8004b8f
commit 1edd3657ba
5 changed files with 20 additions and 5 deletions

View File

@@ -182,6 +182,8 @@ class Program:
* ``%d``: release title (with disambiguation)
* ``%D``: disc title (without disambiguation)
* ``%I``: MusicBrainz Disc ID
* ``%M``: total number of discs in the chosen release
* ``%N``: number of current disc
* ``%T``: medium title
* ``%y``: release year
* ``%r``: release type, lowercase
@@ -219,6 +221,8 @@ class Program:
v['B'] = metadata.barcode
v['C'] = metadata.catalogNumber
v['c'] = metadata.releaseDisambCmt
v['M'] = metadata.discTotal
v['N'] = metadata.discNumber
v['T'] = metadata.mediumTitle
if metadata.releaseType:
v['R'] = metadata.releaseType