Labeling Preferences

Trying to get the following results:
MUSIC FOLDER\ARTIST\ [YEAR] ALBUM NAME

It’s the brackets that seem be the problem. I can () all day long, just not []

I just use [ and ] in the file naming script and it works just fine (on Windows 10 - I cannot speak for Mac / Linux). But usually you need to escape the and ) with a preceding \.

1 Like

Using brackets should be no problem. If you can share your naming script we can take a look at what’s wrong.

1 Like

$if2(%albumartist%,%artist%)/
$if(%date%,($left([%date%,5)]))
$if(%albumartist%,%album%/,)
$if($gt(%totaldiscs%,1),%discnumber%-,)$if(%_multiartist%,%artist% - ,)%title%

Is the closest I can get. I can’t seem to remove the () from the equation. I get ([1996]) for example instead of the desired [1996] result instead. Thanks for the help.

You have too many rounded brackets in your second line, probably because you have got an error message caused by the wrong order of the opening and closing rounded and square brackets: ([x)] should be [(x)]. You have to move the opening square bracket outside of the $left() function and remove the unwanted rounded brackets:

$if2(%albumartist%,%artist%)/
$if(%date%,[$left(%date%,4)])
$if(%albumartist%,%album%/,)
$if($gt(%totaldiscs%,1),%discnumber%-,)$if(%_multiartist%,%artist% - ,)%title%
3 Likes

thank you so much. that really helped. :+1:

1 Like