i need some help making a change to my formatting. i've tried to make the changes, but i just can't seem to get them right.
my current formatting does the following:
-- if (OST) is present at the end of the directory name, the album is assumed to be an ORIGINAL SOUNDTRACK.
-- if the first 3 characters of the ARTIST are not the same as the first three characters of the directory, the album is assumed to be by VARIOUS ARTISTS.
the formatting goes as follows:
$if($strcmp($num(%tracknumber%,1),1),
$if($stricmp($right(%_directoryname%,5),'(OST)'),
$get(color_art)'Original Soundtrack',
$if($not($stricmp($left(%artist%,3),$left(%_directoryname%,3))),
$get(color_art)'Various Artists',
$get(color_art)%Artist%))
$get(color_gri)$repeat('—',100),)
what i want to do, however, is make the following exception to the VARIOUS ARTIST naming:
-- if the album is in a folder starting with "CD" or "DISC", then i want it to do the same check (match first 3 characters of dir against artist) to the directory above.
i tried this:
$if($strcmp($num(%tracknumber%,1),1),
$if($stricmp($right(%_directoryname%,5),'(OST)'),
$get(color_art)'Original Soundtrack',
$if($not($stricmp($left(%artist%,3),$left(%_directoryname%,3))),
$if($stricmp($left(%_directoryname%,2),'CD'),
$if($not($stricmp($left(%artist%,3),$left($directory(%_path%,2),3))),
$get(color_art)'Various Artists',
$if($stricmp($left(%_directoryname%,4),'disc'),
$if($not($stricmp($left(%artist%,3),$left($directory(%_path%,2),3))),
$get(color_art)'Various Artists',
$get(color_art)%artist%))))))
$get(color_gri)$repeat('—',100),)
...but it doesn't work. can anyone help me make the desired changes to the first chunk of code?