vitiko98 / qobuz-dl

A complete Lossless and Hi-Res music downloader for Qobuz
GNU General Public License v3.0
1.45k stars 192 forks source link

Add format specifier for title with version #140

Open shayded-exe opened 2 years ago

shayded-exe commented 2 years ago

There's currently no way to have filenames include the version if it exists, but omit it otherwise.

I'm using the following format: track_format = {artist} - {tracktitle} ({version})

This results in a lot of tracks with (None) appended to their names.

There should be a {tracktitle_with_version} format specifier that formats the track title as it appears in Qobuz. The script already does this when setting the title meta tag so it only makes sense. I would say that this should actually be the default behavior for {tracktitle}, but this way the change would maintain backwards compatibility.

sramsay100 commented 2 years ago

+1

Yes pease.

xeruf commented 8 months ago

With a little thought a feature like this can actually be made even more dynamic and stay with a single config field, for example what I did in my old tool of mine: https://github.com/xeruf/monsterutilities?tab=readme-ov-file#downloader

Basically everything in curly braces was only added if there is a successful substitution within.