Separating same album with different codec/bitdepth/bitrate

Hi @macleodmike and @adrian (and other too ;-))

I’ve come a long way over the weekend.
My Paul Simon folder now looks like this (before and after)

when I do a test run with the following Path:

default: 'Albums/%the{$albumartist}/$album %aunique{albumartist album year, albumtype label catalognum albumdisambig}%if{$albumdisambig,($albumdisambig$, $year) }(%if{$original_year,$original_year}) ($format $bitdepth-$samplerate)/%if{$multidisc,$disc-}$track - $title'

This is getting to what I would like achieve so going well.
But there are a few remaining questions which I hope you (or others) have some ideas on:

  • I’ve not found a way to let beets now that if I import a duplicate album but with a other samplerate (a field that would differentiate the various FLAC resolutions) it should not be marked as a duplicate. Is something like that possible?

  • I trying to understand the [xx] (e.g. 18, 19 etc) field. It looks like a marker for duplicates but both albums like ‘So beautiful so what’ and ‘Songs from the Capeman’ have it while only one is a true duplicate. So I might have a wrong field in my path. Does anyone know what I’m doing wrong? Also if I can find a way to solve the previous question this one might go away.

  • Is there a way to add sections in a path based on criteria so that I can add different fields for MP3 and FLAC? Because MP3’s don’t have a bitdepth field and samplerate is mostly 44 so I would like to define MP3’s in the path with ($format $albumbitrate) (via the inline plugin) and FLACs with ($format $bitdepth-@samplerate). It would ask for some conditional like %if FLAC and %if MP3 I guess but I’ve not found a way to do this.

  • And is there a way to prevent extra spaces that sometimes occur when a field is not available?

  • @macleodmike you write “you can see that I specify the order of fields to use for disambiguation” and you place the aunique fields in the path and not in the config itself. I copied your path and adapted it and in my config (still a lot like the default) I also have a section:

    aunique:
    keys: albumartist album
    disambiguators: albumtype year label catalognum albumdisambig releasegroupdisambig
    bracket: ‘()’

How does this relate to how you use it? Is it a duplication or have both their use?
Do you know of a way to disambiguate albums that are remastered since MusicBrainz often doesn’t show me remastered values for dismbiguation.

I have more questions but they are of a more general nature so I’ll post them as separate posts, might be easier for future reference to other users.

Thanks a lot for your help so far. It has been invaluable,

Jan