Newbie question from The Netherlands

Tags: #<Tag:0x00007fef692a5f48>

Hello, I have probably made a mistake but i cannot correct it. Find it too dificult to program the scripting.
Is there somebody who can help me?

I do not use Taggerscriping.

So this is my script;
$if2(%albumartist%,%artist%)/$if($ne(%albumartist%,),%album%/,)$if($gt(%totaldiscs%,1),%discnumber%-,)$if($ne(%albumartist%,),$num(%tracknumber%,2) ,)$if(%_multiartist%,%artist% - ,)%title%

What i want is mentioning of the year in the albumname.
So i made the script like this;
$if2(%albumartist%,%artist%)/$if($ne(%albumartist%,),/ $if(%date%,($left(%date%,4)) - %album%/,)$if($gt(%totaldiscs%,1),%discnumber%-,)$if($ne(%albumartist%,),$num(%tracknumber%,2) ,)$if(%_multiartist%,%artist% - ,)%title%

This is the result:


In the red circle there is a hook open.
The green circle is how i want it.

What did i do wrong because i cannot find my mistake ?
Thank you in advance.

1 Like

Hi Glenn,

The problem seems to be the opening bracket before $left in $if(%date%,($left(%date%,4)).

Could you try the script with
$if2(%albumartist%,%artist%)/$if($ne(%albumartist%,),/ $if(%date%,$left(%date%,4)) - %album%/,)$if($gt(%totaldiscs%,1),%discnumber%-,)$if($ne(%albumartist%,),$num(%tracknumber%,2) ,)$if(%_multiartist%,%artist% - ,)%title%
and report if that works?


Thank you @mfmeulenbelt for your quick answer.
I’ve tried to remove the opening bracket but unfortinately it gave an error:


i am at a loss… also tried to remove this open bracket
before the %date%, but that gives also an error

You seem to have replaced the bracket with a backslash. Could you try copying and pasting the script I posted above?


It worked ! Thank you so much! :slightly_smiling_face::ok_hand::+1:


I’m so glad. Thank you.