Bug 25 - Add disc number
Summary: Add disc number
Alias: None
Product: Asunder
Classification: Unclassified
Component: All (show other bugs)
Version: 2.7
Hardware: PC Linux
: enhancement
Assignee: Andrew Smith
Depends on:
Reported: 2016-01-11 16:50 EST by Steve Holmes
Modified: 2018-07-12 21:33 EDT (History)
4 users (show)

See Also:

Add support for disc number in filenames and tags. Apply with "patch -p0" (46.71 KB, patch)
2018-07-12 21:33 EDT, David Lupo
Details | Diff

Description Steve Holmes 2016-01-11 16:50:15 EST
It would be helpful to have disc number as an editable field (populated from CDDB if poss), and a variable to use when writing filenames.
Comment 1 Andrew Smith 2016-01-17 22:40:54 EST
Hi Steve

Would modifying the album title to include the disk number work?

You're not the only one who asked for this, but it's hard to justify adding a field to the user interface for a very rare use case.

Comment 2 neckcen 2016-05-12 15:13:32 EDT

I just wanted to mention that, depending on the kind of music you listen to, having multiple CD is a very common practice (classical and trance come to mind).

As such I'd love proper support for disc number (including in file name). I'd suggest using the space between the single artist checkbox and year field (enough to fit "Disc # + a small field).

On a side note, thanks for making the only ripper that worked properly for me!
Comment 3 Liv 2017-03-24 17:44:34 EDT
I'm not sure how this would change things, but having multiple CDs is indeed common with classical CDs.
Comment 4 Liv 2017-03-25 04:51:37 EDT
Speaking of this, I now have a very real, shiny new album consisting of 3 CDs in my hands... :)

Comment 5 David Lupo 2018-07-12 21:33:23 EDT
Created attachment 35 [details]
Add support for disc number in filenames and tags. Apply with "patch -p0"

I found this enhancement request because I, too, have a stack of multi-disc classical albums to zip. Since I used to program in C back before my company switched to C++, I thought I'd see what I could do to add the feature.

I've attached a patch file to add support for a disc number in the track filenames and as a tag in (some of) the encodings. There is some disc number format support under the same option as the starting track number and track number width settings, and a %D option will add the disc number to the filename if the number is non-zero.

I've been able to check that flac and mp3 tags work. I added tags to the other encoders that allowed for arbitrary tags, but I don't know what the proper magic names are in all the cases. (They don't break the files; they just may not show up on playback.) 

I'm also not up to speed on internationalization, so the po files will need some help.

The freedb documentation doesn't have a field for discnumber, so the number cannot be downloaded but will have to be entered by the user.

Note You need to log in before you can comment on or make changes to this bug.