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

WIP: Add more metadata options for file templates #476

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

lonemadmax
Copy link
Contributor

Notice this probably shouldn't be merged as is, I've just copied and adapted some other code already in whipper, not really knowing if what I was doing was right. I've not even run the tests, or updated them and the documentation.

The WIP tag means it works for me (a very light user) and someone with real knowledge can take it and do it The Right Way, not that I'm still working on it.

May be of use to #448, #440 and #401. Given that the 'bare' release title is provided through a new variable, it doesn't affect users that like current behaviour. The flac metadata is still in the long format, though. The new ...-mdisc options may be too much, but they also may be useful if you launch whipper from a script and you want different templates for mono- and multi-disc releases.

Feel free to appropriate the good bits, discard the garbage, open a new PR and close this one.

Signed-off-by: Máximo Castañeda <[email protected]>
%D: release title without disambiguation and other extras
%T: medium title, disc number if it doesn't have one
%N: medium position in the collection
%M: total medium count in the collection

Signed-off-by: Máximo Castañeda <[email protected]>
An "output directory is a finished rip" error is raised when a log file is
found in the output directory, and that is *any* `.log` file, which may be
there from a different rip.

Signed-off-by: Máximo Castañeda <[email protected]>
JoeLametta added a commit that referenced this pull request May 16, 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.

Resolves #401, resolves #440, resolves #448.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant