The reason it splits the artists on a compilation is you’re using %artist% instead of %albumartist%. %albumartist% is the same for all tracks on the album, while %artist% can vary from track to track.
To split DJ compilations from VA’s (or to treat any group of albums differently), you can use what I call “control tags”.
- Create a script in the Scripting tab of Options called “Set DJ compilation”
- In that script put the line: $set(DJCompilation, 1)
- Make sure the checkbox next to the script is not checked.
- In your file naming script you can use $if(%DJCompilation%, … to divide the things you want to happen to DJ comps from the VA comps.
- Now pull up your DJ comps in Picard and select all.
- Right-click on them, select Run Script and click “Set DJ compilation”
- Now they’ll all have the control variable and it will be written to the files as a custom tag.
- You should also create a script with $delete(DJCompilation) in case you want to remove the tag from some of your files.