Help For Soundtracks

Tags: #<Tag:0x00007f9ad6621d80> #<Tag:0x00007f9ad6621c68> #<Tag:0x00007f9ad6621b00>

OK fellow Picard Friends here is my script:

$if($gt(%_bits_per_sample%,16),-=[%_bits_per_sample%bit]=-,)/
$upper(%_extension%)/
$swapprefix($if2(%_artists_album_primary_std%,%artist%),The,Die,Le)
/$replace($replace($replace($replace($replace($replace($replace($replace($replace($replace($replace($replace($replace($replace($replace($swapprefix($if2(%albumartist%,%artist%),The,Die,Le),",''), meets , & ), X , & ), × , & ),; , & ), x , & ), | , & ), • , & ), ⋅ , & ), and , & ),+,&), with , & ), vs , & ), vs. , & )-$replace($replace($truncate(%_album%,100),",''),:,-)
$if($gt(%totaldiscs%,1),-%totaldiscs%CD)
$if($in(%media%,Vinyl),-VINYL,)
$if($gt(%_bits_per_sample%,16),-[%_bits_per_sample%bit,)
$if($gt(%_sample_rate%,48000), $div(%_sample_rate%,1000)kHz],)
$if($in(%media%,Cassette),-CASSETTE,)
$if($eq(%releasetype%,ep),-EP,)
$if($eq(%releasetype%,live),-\(Live\),)
$if($eq(%releasetype%,soundtrack),-OST,)
$if($eq(%releasetype%,single),-SINGLE,)
$if($inmulti(%releasetype%,live),-\(Live\),)
$if($inmulti(%releasetype%,compilation),-\(Compilation\),)
$if($eq(%releasestatus%,promotion),-PROMO,)
$if($eq(%releasestatus%,bootleg),-BOOTLEG,)
$if($ne_all(%catalognumber%,none,[none]),$if(%catalognumber%,$upper(-\($replace($replace($replace($replace($replace($replace($replace($replace($replace($replace($replace($rsearch(%catalognumber%,\(.+?\)\(?:; |\$\)+),_,),⋅,),/,),:,),*,),?,),",),<,),>,),|,), ,)\))))
$if($eq(%media%,Hybrid SACD),-[Hybrid-SACD],)
$if($eq(%media%,SACD),-[SACD],)
$if($eq(%media%,SHM-CD),-[SHM-CD],)
$if($eq(%media%,SHM-SACD),-[SHM-SACD],)
$if($eq(%media%,Digital Media),-WEB,)
$if($eq(%media%,Blu-spec CD),-[BLU-SPEC],)
$if($ne(%_extension%,mp3),$upper(-%_extension%))
$if(%date%,-%date%,)-PiCARD, ,_)
/$if($in(%media%,Vinyl),%_musicbrainz_tracknumber%,$if($gt(%totaldiscs%,1),%discnumber%,)$num(%tracknumber%,2)). $if(%_multiartist%,%artist% - ,)$truncate(%title%,70)

Can someone please just add to this script a section to make Soundtrack albums be put in directories /Soundtracks/
But also remove the Various artists or Artist Name from the beginning of the folder name and have it only the soundtrack name. Here is an example:
I don’t want----> John Barry/John_Barry-Somewhere_in_Time-_Original_Motion_Picture_Soundtrack-(DIDX-347)-1980
I do want------->Soundtracks/Somewhere_in_Time-_Original_Motion_Picture_Soundtrack-(DIDX-347)-1980

I am not exactly sure where you want the Soundtrack folder, but here are the basics. For checking if a release is a ssoundtrack use:

$if($inmulti(%releasetype%,soundtrack),...)

If I get you correctly you want the Soundtrack directory instead of the artist folder, in this case change line 3 of your script to:

$if($inmulti(%releasetype%,soundtrack),Soundtrack,$swapprefix($if2(%_artists_album_primary_std%,%artist%),The,Die,Le))

The artist in the file name is currently added with:

$if(%_multiartist%,%artist% - ,)

Add here the condition that this is only doen if it is not a soundtrack:

$if($and(%_multiartist%,$not($inmulti(%releasetype%,soundtrack))),%artist% - ,)

Overall the below might be what you want:

$if($gt(%_bits_per_sample%,16),-=[%_bits_per_sample%bit]=-,)/
$upper(%_extension%)/
$if($inmulti(%releasetype%,soundtrack),Soundtrack,$swapprefix($if2(%_artists_album_primary_std%,%artist%),The,Die,Le))
/$replace($replace($replace($replace($replace($replace($replace($replace($replace($replace($replace($replace($replace($replace($replace($swapprefix($if2(%albumartist%,%artist%),The,Die,Le),",''), meets , & ), X , & ), × , & ),; , & ), x , & ), | , & ), • , & ), ⋅ , & ), and , & ),+,&), with , & ), vs , & ), vs. , & )-$replace($replace($truncate(%_album%,100),",''),:,-)
$if($gt(%totaldiscs%,1),-%totaldiscs%CD)
$if($in(%media%,Vinyl),-VINYL,)
$if($gt(%_bits_per_sample%,16),-[%_bits_per_sample%bit,)
$if($gt(%_sample_rate%,48000), $div(%_sample_rate%,1000)kHz],)
$if($in(%media%,Cassette),-CASSETTE,)
$if($eq(%releasetype%,ep),-EP,)
$if($eq(%releasetype%,live),-\(Live\),)
$if($eq(%releasetype%,soundtrack),-OST,)
$if($eq(%releasetype%,single),-SINGLE,)
$if($inmulti(%releasetype%,live),-\(Live\),)
$if($inmulti(%releasetype%,compilation),-\(Compilation\),)
$if($eq(%releasestatus%,promotion),-PROMO,)
$if($eq(%releasestatus%,bootleg),-BOOTLEG,)
$if($ne_all(%catalognumber%,none,[none]),$if(%catalognumber%,$upper(-\($replace($replace($replace($replace($replace($replace($replace($replace($replace($replace($replace($rsearch(%catalognumber%,\(.+?\)\(?:; |\$\)+),_,),⋅,),/,),:,),*,),?,),",),<,),>,),|,), ,)\))))
$if($eq(%media%,Hybrid SACD),-[Hybrid-SACD],)
$if($eq(%media%,SACD),-[SACD],)
$if($eq(%media%,SHM-CD),-[SHM-CD],)
$if($eq(%media%,SHM-SACD),-[SHM-SACD],)
$if($eq(%media%,Digital Media),-WEB,)
$if($eq(%media%,Blu-spec CD),-[BLU-SPEC],)
$if($ne(%_extension%,mp3),$upper(-%_extension%))
$if(%date%,-%date%,)-PiCARD, ,_)
/$if($in(%media%,Vinyl),%_musicbrainz_tracknumber%,$if($gt(%totaldiscs%,1),%discnumber%,)$num(%tracknumber%,2)). $if($and(%_multiartist%,$not($inmulti(%releasetype%,soundtrack))),%artist% - ,)$truncate(%title%,70)
3 Likes

@outsidecontext I thank you so much for making it so easy for me. I so appreciate the help and the copy paste action I did to get it working. You put the directory for soundtracks in the exact place I wanted it too. YOU ROCK!