Help with script

Hello

I created the script about 5 years ago and forgot how to edit it. I need help on how to delete %_releasecomment% from album filename from script.

Propably this:

(%_releasecomment%, (%_releasecomment%),),*,),?,),:,-),",'),/,-)

>     $replace($replace($replace($replace($replace(
>     $rreplace($if2(%albumartist%,%artist%),\(^The \)\(.*\),\\2\, The)
>     ,*,[x]),?,),:,-),",'),/,-)
>     /$replace($replace($replace($replace($replace(
>     $if2(%albumartist%,%artist%) - %album%$if(%_releasecomment%, \(%_releasecomment%\),),*,[x]),?,),:,-),",'),/,-)$if($gt(%totaldiscs%,1), %totaldiscs%CD$if($eq(%media%,LP), [Vinyl])$if($eq(%media%,Vinyl), [Vinyl]))$if($eq(%media%,7″ Vinyl), [Vinyl])$if($eq(%media%,7" Vinyl), [Vinyl])$if($eq(%media%,10″ Vinyl), [Vinyl])$if($eq(%media%,10" Vinyl), [Vinyl])$if($eq(%media%,12″ Vinyl), [Vinyl])$if($eq(%media%,12" Vinyl), [Vinyl])$if(%catalognumber%, [%catalognumber%]) [$if(%date%,$left(%date%,4),____)]
>     $if($eq(%releasetype%,ep), [EP])
>     $if($eq(%releasetype%,single), [Single])
>     $if($eq(%releasetype%,single; remix), [Single])
>     $if($eq(%releasetype%,album), [Album])
>     $if($eq(%releasetype%,Album), [Album])
>     $if($eq(%releasetype%,compilation), [Compilation])
>     $if($eq(%releasetype%,album; compilation), [Compilation])
>     $if($eq(%releasetype%,album; soundtrack), [OST])
>     $if($eq(%releasetype%,album; live), [Live])
>     $if($eq(%releasetype%,ep; live), [Live])
>     $if($eq(%releasetype%,remix), [Remix])
>     $if($eq(%releasetype%,ep; remix), [Remix])
>     $if($eq(%releasetype%,album; remix), [Remix])
>     $if($eq(%releasetype%,dj-mix), [DJ Mix])
>     $if($eq(%releasetype%,album; compilation; dj-mix), [DJ Mix])
>     $if($eq(%releasetype%,mixtape/Street), [Mixtape])
>     $if($eq(%_extension%,flac), FLAC)
>     $if($eq(%_extension%,m4a), m4a)
>     $if($eq(%_extension%,ogg), ogg)
>     $if($eq(%_extension%,wma), wma)
>     /$if($gt(%totaldiscs%,1),CD$num(%discnumber%,2) - $if2(%discsubtitle%,%album%) [$if(%originaldate%,$left(%originaldate%,4),____)])
>     /$num(%tracknumber%,2).$if(%compilation%, %artist% -) %title%

Remove

$if(%_releasecomment%, \(%_releasecomment%\),)
1 Like

Thank you, it works.

I need help with one last thing.

When i have compilation, dj-mix or soundtrack i want to picard make filenames:

  1. Artist name - tracktitle

In classic albums with one artist:

  1. Tracktitle

“My” script works with albums and compilations, but dosnt work with dj-mix and soundtracks. How do that?

Solved it:

$if(%compilation%, %artist% -)$if(%djmix%, %artist% -)$if(%soundtrack%, %artist% -) %title%

Hello
I have a script problem again:

$replace($replace($replace($replace($replace(
$rreplace($if2(%albumartist%,%artist%),\(^The \)\(.*\),\\2\, The)
,*,[x]),?,),:,-),",'),/,-)
/$replace($replace($replace($replace($replace(
$if2(%albumartist%,%artist%) - %album%,*,[x]),?,),:,-),",'),/,-)$if($gt(%totaldiscs%,1), %totaldiscs%CD$if($eq(%media%,LP), [Vinyl])$if($eq(%media%,Vinyl), [Vinyl]))$if($eq(%media%,7″ Vinyl), [Vinyl])$if($eq(%media%,7" Vinyl), [Vinyl])$if($eq(%media%,10″ Vinyl), [Vinyl])$if($eq(%media%,10" Vinyl), [Vinyl])$if($eq(%media%,12″ Vinyl), [Vinyl])$if($eq(%media%,12" Vinyl), [Vinyl])$if(%catalognumber%, [%catalognumber%]) [$if(%date%,$left(%date%,4),____)]
$if($eq(%releasetype%,ep), [EP])
$if($eq(%releasetype%,single), [Single])
$if($eq(%releasetype%,single; remix), [Single])
$if($eq(%releasetype%,album), [Album])
$if($eq(%releasetype%,Album), [Album])
$if($eq(%releasetype%,compilation), [Compilation])
$if($eq(%releasetype%,album; compilation), [Compilation])
$if($eq(%releasetype%,album; soundtrack), [OST])
$if($eq(%releasetype%,album; live), [Live])
$if($eq(%releasetype%,ep; live), [Live])
$if($eq(%releasetype%,remix), [Remix])
$if($eq(%releasetype%,ep; remix), [Remix])
$if($eq(%releasetype%,album; remix), [Remix])
$if($eq(%releasetype%,dj-mix), [DJ Mix])
$if($eq(%releasetype%,album; dj-mix), [DJ Mix])
$if($eq(%releasetype%,album; compilation; dj-mix), [DJ Mix])
$if($eq(%releasetype%,mixtape/Street), [Mixtape])
$if($eq(%_extension%,flac), FLAC)
$if($eq(%_extension%,m4a), m4a)
$if($eq(%_extension%,ogg), ogg)
$if($eq(%_extension%,wma), wma)
/$if($gt(%totaldiscs%,1),CD$num(%discnumber%,2) - $if2(%discsubtitle%,%album%) [$if(%originaldate%,$left(%originaldate%,4),____)])
/$num(%tracknumber%,2).$if(%compilation%, %artist% -)$if(%djmix%, %artist% -)$if(%soundtrack%, %artist% -) %title%

The command below works only for one type:

$if(%compilation%, %artist% -)$if(%djmix%, %artist% -)$if(%soundtrack%, %artist% -) %title%

I do not know how to make the file names contain the artist and the name of the song for mixed type releases (e.g.: Album + DJ-Mix, Album + Compiltaion).

Example:
https://musicbrainz.org/release-group/b03098f6-65e5-4515-b6be-03781d9e5c59
It looks like this:
obraz

It should be like this:
obraz

Where do you set the %djmix% and %soundtrack% variables?

Anyway, try this:

$if($or(%compilation%,$inmulti(%releasetype%,soundtrack),$inmulti(%releasetype%,dj-mix)), %artist% -)

$inmulti(%releasetype%,soundtrack) will be true if the album has the type “soundtrack” no matter how many other types it has in addition.

2 Likes

Where do you set the %djmix% and %soundtrack% variables?

in the last row:

/$num(%tracknumber%,2).$if(%compilation%, %artist% -)$if(%djmix%, %artist% -)$if(%soundtrack%, %artist% -) %title%

in 3 separate commands because I could not combine them into one.

outsidecontext You saved my life again! Thank you so much.That’s it, it works. The 771 GB collection is waiting for re-editing.