Still cannot figure Soundtracks out

I just need to eliminate the Artist name from the beginning of ONLY Soundtracks Folders.
What I have: Christopher_Beck-Ant-Man_-Original_Motion_Picture_Soundtrack-OST-CD-2015
What I want: Ant-Man
-_Original_Motion_Picture_Soundtrack-OST-CD-2015

Heres my script for this section:

$if2($if($eq($len(%musicbrainz_albumid%),0),No MBID/$if2(%albumartist%,%artist%),)
,$if($eq(%releasetype%,spokenword),Spoken Word/$if2(%albumartist%,%artist%),)
,$if($eq(%releasetype%,audiobook),Spoken Word/$if2(%albumartist%,%artist%),)
,$if($eq(%releasetype%,interview),Spoken Word/$if2(%albumartist%,%artist%),)
,$if($eq(%releasetype%,album; soundtrack),Soundtracks/,)
,$if($and($or($eq(%releasetype%,album; compilation),$or($eq(%releasetype%,album),$eq(%releasetype%,compilation))),$eq(%albumartist%,Various Artists)),Compilations/,)
,$if($in(%album%,Promo Only),Promo Only/,)
,$if($and($lt($matchedtracks(),%totaltracks%),$lt($matchedtracks(),60)),Incomplete Releases/$if2(%albumartist%,%artist%),$if2(Artists/$if2(%albumartist%,%artist%)))
)/
$replace($replace($rreplace(%albumartist%-%album%,[_:*?"<>|], -),?,), ,_)

The relevant part for you is only the last line:

$replace($replace($rreplace(%albumartist%-%album%,[_:*?"<>|], -),?,), ,_)

You want to have the album artist being used here only if it is not a soundtrack. So put that part in an $if:

$replace($replace($rreplace($if($not($inmulti(%releasetype%,soundtrack)),%albumartist%-)%album%,[_:*?"<>|], -),?,), ,_)

The interesting part is only $if($not($inmulti(%releasetype%,soundtrack)),%albumartist%-). This will output the album artist only if releasetype does not contain “soundtrack”.

4 Likes

@outsidecontext FINALLY! Thanks so much, I so appreciate your help! :wink: