# Still cannot figure Soundtracks out

**URL:** https://community.metabrainz.org/t/still-cannot-figure-soundtracks-out/453149
**Category:** MusicBrainz Picard
**Tags:** taggerscript, picard
**Created:** [November 28, 2019, 3:30pm UTC](https://community.metabrainz.org/t/still-cannot-figure-soundtracks-out/453149 "2019-11-28T15:30:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![cyberdoggy](https://community.metabrainz.org/user_avatar/community.metabrainz.org/cyberdoggy/32/24303_2.png) [@cyberdoggy](https://community.metabrainz.org/u/cyberdoggy)
#### Post date: [November 28, 2019, 3:30pm UTC](https://community.metabrainz.org/t/still-cannot-figure-soundtracks-out/453149/1 "2019-11-28T15:30:11Z")

</div>

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:

```auto
$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%,[_:*?"<>|], -),?,), ,_)

```

---

<div class="post-metadata">

### Author: ![outsidecontext](https://community.metabrainz.org/user_avatar/community.metabrainz.org/outsidecontext/32/90_2.png) [@outsidecontext](https://community.metabrainz.org/u/outsidecontext)
#### Post date: [November 28, 2019, 3:43pm UTC](https://community.metabrainz.org/t/still-cannot-figure-soundtracks-out/453149/2 "2019-11-28T15:43:19Z")

</div>

The relevant part for you is only the last line:

```auto
$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:

```auto
$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”.

---

<div class="post-metadata">

### Author: ![cyberdoggy](https://community.metabrainz.org/user_avatar/community.metabrainz.org/cyberdoggy/32/24303_2.png) [@cyberdoggy](https://community.metabrainz.org/u/cyberdoggy)
#### Post date: [November 28, 2019, 5:47pm UTC](https://community.metabrainz.org/t/still-cannot-figure-soundtracks-out/453149/3 "2019-11-28T17:47:21Z")

</div>

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