Renaming file with %label% only if available

Tags: #<Tag:0x00007fe316cca910> #<Tag:0x00007fe316cca6b8>

Hi all,

I am trying to rename my files to something very simple but i am struggling.

Basically i would like :

Artist - Title - Album (label)

EG : Coldplay - Yellow - Parachutes (Parlophone)

However, I only want the label and brackets to show up if the label data/tag exists.

So far i have got this far…

%artist% - %title% - %album%

My problem is I dont know how to add the $if for the label and the brackets…

Try adding $if(%label%,\(%label%\)) at the end of the file naming script. Note that you have to escape brackets with a backslash.

1 Like