Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add requested template variables #536

Merged
merged 8 commits into from
May 16, 2021
Merged

Add requested template variables #536

merged 8 commits into from
May 16, 2021

Conversation

JoeLametta
Copy link
Collaborator

@JoeLametta JoeLametta commented May 15, 2021

This pull request extends the supported template variables. Additions:

  • %B: release barcode (already included but is now allowed)
  • %C: release catalog number (already included but is now allowed)
  • %c: release disambiguation comment
  • %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

When the relative metadata is available, whipper now adds the TRACKTOTAL, DISCTOTAL and DISCNUMBER metadata tags to the audio tracks.

I've also taken the inspiration from pull request #476.

I haven't tested the changes so I can't guarantee that the added features will work as expected.

Resolves #401, resolves #440, resolves #448.

Copy link
Member

@Freso Freso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At a glance, having only read through the PR and not tested it, it looks good. 👍

@JoeLametta JoeLametta force-pushed the misc-changes-template branch 2 times, most recently from 9642e3a to 0deb9fb Compare May 15, 2021 16:48
@JoeLametta
Copy link
Collaborator Author

Sorry, made a bit of a mess: two commits got accidentally fixed up in a previous one. I've force pushed with the commits split and updated the description of the pull request. Because of the mistake, these variables were not included in the initial description:

  • %M: total number of discs in the chosen release
  • %N: number of current disc
  • %T: medium title

@JoeLametta JoeLametta force-pushed the misc-changes-template branch 2 times, most recently from 5238d8d to f5072c8 Compare May 16, 2021 08:32
JoeLametta and others added 8 commits May 16, 2021 10:32
Already included but were not allowed.
Improved documentation.

Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
- Trasparent change: now it makes more sense.
- Updated tests to reflect 'title', 'releaseTitle' meaning swap.
- Improved documentation.

Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
- %M: total number of discs in the chosen release
- %N: number of current disc

Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
Co-authored-by: Máximo Castañeda <antiswen@yahoo.es>
Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
@JoeLametta JoeLametta merged commit b6338b2 into develop May 16, 2021
@JoeLametta JoeLametta deleted the misc-changes-template branch May 16, 2021 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants