Picard script and Various Artist

Hi i working on a file moving scrip that place there songs on there album artist name but i like an condition if the value for album artist is “Various Artist” than i like to use the value for Artist.

Is there a way to do this?

edit the idea is some thing like this in python Pseudocode:

if track["Album Artist"] != "Various Artists":
    save_path.append(track["Album Artist"])
else:
    save_path.append(track["Artist"])

You could try something like the following at the top of your filenaming script, and then just use the new variable %_artist_to_use% in place of %albumartist% later on in your script.

$set(_artist_to_use,$if($eq(%albumartist%,Various Artists),%artist%,%albumartist%))

Disclaimer: This is just off the top of my head and is untested. In my file naming script, I actually check for the MBID of the “Various Artists” artist which is more resilient.

1 Like

Thanks for my goals i need to change $eq to $ne but it works

You need to be VERY careful here to ensure that you only use %artist% in the filename rather than the path because otherwise your albums will get spread around various directories on your disk.

I do this for my music video colletion