Moving albumartist to wrong folder!?

Im using this to rename my files with Picard:

$firstalphachar($if($eq($left($lower(%albumartist%),4),the ),
%_artists_album_primary_std%/%_artists_album_primary_std% - %_extension% - 
%_primaryreleasetype% - 
%originalyear% - $replace($replace($replace($replace($replace($replace(%album%,?,?),!,!),,),/,/),:,:),…,…)/
$num(%discnumber%,2)-$num(%tracknumber%,2) - %artist% - %title%,

But an artist like Daryl Hall & John Oates gets in folder H. But i want it in folder D
I have checked the artist albumartist and that is Daryl Hall & John Oates so what am i doing wrong?
Can someone please tell me?

How exactly is the value of the album artist tag before you save? Do you have any scripts that sets albumartist to albumartistsort or something like that?

Also what release are you tagging?

1 Like

I have no scripts running and no plugins that i can see that will make this change.
The properties for the artist looks like this:

Ok, that’s odd. But if the albumartist would indeed be “Daryl Hall & John Oates” at the time this gets run:

$firstalphachar($if($eq($left($lower(%albumartist%),4),the ),

Then you’d get D as the first character. So something else must be going on. Is the above really the beginning of your script or is there more above?

1 Like

Finally! Found it!
It was a plugin.

Thanks for helping me!