How to use %_totalalbumtracks% if filenaming

Tags: #<Tag:0x00007fbb431f0788> #<Tag:0x00007fbb431f0580> #<Tag:0x00007fbb431f0378>

I can’t seem to get %_totalalbumtracks% to write to my filename. This is very annoyment.

Thanks for anyone that can help.

My script is nothing special. Just want to get matched and total release tracks in the directory name, similar to how it appears in the right hand side. Nothing seems to work and %totaltracks% is no help as thats per disc and matches per release.
Also want to set root directories up for complete, dupes, incomplete releases but solve this first. %_absolutetracknumber% always works all I need is like the maximum that can be lol.

$if2(%albumartist%,%artist%) - $if2(%album%,Unknown Album)$if(%catalognumber%, #%catalognumber%,)
$if($matchedtracks(), [$matchedtracks()~$if2(%_totalalbumtracks%,%totaltracks%)],)
/$if(%_absolutetracknumber%,$num(%_absolutetracknumber%,2). ,
$if($gt(%totaldiscs%,1),%discnumber%.,)$if($and(%albumartist%,%tracknumber%),$num(%tracknumber%,2). ,))%artist% - %title%$if(%discsubtitle%, [%discsubtitle%],)

So now I have two folders for two discs with the same number of matched files…
3 Chairs - 3 Chairs #3CH 3CD [16~6]
3 Chairs - 3 Chairs #3CH 3CD [16~10]

Are you using Picard 2.5.0? There is a big in this version that makes this variable unavailable. In this case you should upgrade to current Picard 2.5.2

2 Likes

Thanks for letting me know, because that variable is essential for organising me long neglected collection.

Unfortunately I have limited connectivity and just spent an afternoon downloading releases I’ll to reload.

Which is something I’ve always wanted - the ability to pause a session and save a cache of releases.