I guess this all depends on your definition of “compilation”:
- If your definition is the same as iTunes’, then you can surround your two code segments with an
$if()
checking for%compilation%
. - If your definition is the same as MusicBrainz’s definition, then you can see of “
compilation
” is in%~secondaryreleasetype%
. - Or if by “compilation” you simply mean anything by Various Artists, then you can check whether
%musicbrainz_albumartistid%
is/equals “89ad4ac3-39f7-470e-963a-56509c546377”. - If none of these, you might need to do some iterating over track
%artist%
s to see if they/enough differ from%albumartist%
.