Hi, my first post here.
I’ve been using Picard for a few weeks now, and I’ve set up some scripts to get what I want.
I’ve hit a stumbling block with a scenario that should be easy, but seems to be impossible for me to work out.
I want to change performer tags with no instruments to a tag called performer:various, but I only want to do it where the person is not already listed somewhere else as a performer for the track.
For instance, Ed Sheerin is listed as performer on this track, as well as vocals and guitar.
My script looks like it works here:
$setmulti(_perflist,$performer(,; )) $copymerge(_perflist,%_perflist%) $setmulti(performer,%performer%) $foreach(%performer%, $if($not($inmulti(%_perflist%,%_loop_value%)), $setmulti(performer:various,%_loop_value%,; ) ) ) ) $unset(performer)
The issue arises when I have multiple empty performers, but only some of them are already listed:
benny blanco and Rick Ruben are both listed as performers, along with Ed Sheerin, but neither have another performer role, so I’d like them to display as performer:various.
If I set each one as a separately labelled tag it works:
What am I missing?