Skip to content

How to create subdirectories for each disc for multi-disc albums? #229

Closed Answered by jtpavlock
ali-ramadhan asked this question in Q&A
Discussion options

You must be logged in to vote

Going back to your original question, does something like this do what you want?

def format_disc_dir(track, album):
    if album.disc_total == 1:
        return ""
    elif album.disc_total <= 9:
        return "Disc {track.disc:1d}"
    elif album.disc_total <= 99:
        return "Disc {track.disc:02}"
    elif album.disc_total <= 999:
        return "Disc {track.disc:03d}"

then your track path configuration would be:
"{disc_and_track(track, album)}/{track.title}"

If not, I'm a bit confused what you want, because the default path already splits tracks into separate disc directories.

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
3 replies
@ali-ramadhan
Comment options

@jtpavlock
Comment options

@ali-ramadhan
Comment options

Comment options

You must be logged in to vote
7 replies
@jtpavlock
Comment options

@jtpavlock
Comment options

@ali-ramadhan
Comment options

@jtpavlock
Comment options

@ali-ramadhan
Comment options

Answer selected by ali-ramadhan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants