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:

afbeelding

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.
Glenn

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?

3 Likes

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

afbeelding

i am at a loss… also tried to remove this open bracket
“$if**(**%date%”
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?

5 Likes

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

afbeelding

I’m so glad. Thank you.

2 Likes