Help with comment tag

Tags: #<Tag:0x00007fe314d24d40> #<Tag:0x00007fe314d24958>

ok this line in my script works perfectly except for my comment section in my tagger script

$if2(%_albumfolder%,%album%),

Here is my comment tagger script:

$set(album,$if(%_releasecomment%,%album% \($title(%_releasecomment%)\),%album%))

Now if I move %album% to the front of my script, like this $if2(%album%,%_albumfolder%), Now comments work fine but my new
problem is then my %_albumfolder% doesn’t work anymore it creates multiple duplicate dirs for multiple disc cd’s
SOOOO question is how to get my comments to work with my %_albumfolder% staying the same?

Can you share full scripts? How does %_albumfolder% get set?

If you do $if2(%album%,%_albumfolder%) then %_albumfolder% probably gets never used because %album% is set!?

1 Like
So sorry Forgot the most important part:

$if($gt(%_bits_per_sample%,16),-=[%_bits_per_sample%bit]=-,)/
$upper(%_extension%)/
$if2($if($eq($len(%musicbrainz_albumid%),0),No MBID/$if2(%albumartist%,%artist%)/,)
$if($eq(%releasetype%,album; soundtrack),Soundtracks/,)
$set(_albumartistprefix,$rsearch(%albumartist%,^\(The|A\)\\s+)),
$if(%_albumartistprefix%,$rreplace(%albumartist%,^\(%_albumartistprefix%\)\(.*\),\\2 \(\\1\)),%albumartist%/)/
$if($eq($is_complete(),0),
$if($lt($matchedtracks( ),%_totalalbumtracks%), _inComplete/, _DuPs/)))
$if($and($lt($matchedtracks(),%totaltracks%),$lt($matchedtracks(),60)),Incomplete Releases/)
$if2(%originalyear%,$left(%originaldate%,4),$left(%date%,4),0000) - 
$replace($replace($rreplace($if($not($inmulti(%releasetype%,soundtrack)),$if($eq(%albumartist%,Various Artists),VA,%albumartist%)-)$if2(%_albumfolder%,%album%),[_:*?"<>|], -),?,), ,_)
$if($ne_all(%catalognumber%,none,[none]),$if(%catalognumber%,$upper(-\($replace($replace($replace($replace($replace($replace($replace($replace($replace($replace($replace($rsearch(%catalognumber%,\(.+?\)\(?:; |\$\)+),_,),⋅,),/,),:,),*,),?,),",),<,),>,),|,), ,)\))))
$if($eq(%label%,Mobile Fidelity Sound Lab),-\(Mobile_Fidelity_Sound_Lab\),)
$if($eq(%releasestatus%,promotion),-PROMO,)
$if($eq(%releasestatus%,bootleg),-BOOTLEG,)
$if($eq(%releasetype%,single),-\(CDMaxi\)-SINGLE,
$if($eq(%releasetype%,ep),-EP,
$if($inmulti(%releasetype%,soundtrack),-OST,
$if($inmulti(%releasetype%,live),-LIVE,))))
$if($eq(%media%,Digital Media),-WEB,)
$if($in(%media%,Vinyl),-VINYL,)
$if($in(%media%,CD),$if($gt(%totaldiscs%,1),-%totaldiscs%CD,-CD),)
$if($in(%media%,Vinyl),$if($gt(%totaldiscs%,1),-%totaldiscs%LP,),)
$if($in(%media%,Bluray),$if($gt(%totaldiscs%,1),-%totaldiscs%BD,),)
$if($in(%media%,Digital Media),$if($gt(%totaldiscs%,1),-%totaldiscs%DM,),)
$if($ne(%_extension%,mp3),$upper(-%_extension%))
$if($eq(%_bitrate%,320.0),-[320],)
$if($if2(%date%,%originalyear%,%originaldate%),-$left($if2(%date%,%originalyear%,%originaldate%),4), [0000])-NOGROUP
$if($gt(%_bits_per_sample%,16), [%_bits_per_sample%bit $div(%_sample_rate%,1000)kHz])/
/$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)

And my release comment tagger:
$set(album,$if(%_releasecomment%,%album% ($title(%_releasecomment%)),%album%))

And My disc subtitle tagger:
$set(_albumfolder,%album%)
$if(%discsubtitle%,$set(album,%album%: %discsubtitle%))

The goal of this script is to have multiple albums in one folder and the titles for each disc are shown as in the picture example: