I’ve been trying to come up with a way to have Picard add the bitrate to the folder that contains the album. On VBR, this is challenging because on 15 different tracks, you’ll have 15 different bitrates. What I’m trying to do instead, is first check for a constant bitrate and set a new variable with that number, and then check to see if the bitrate falls within a range. I think the issue may be the nested ifs, or bitrate may simply not be responding to functions as I would expect.
$if2(%albumartistsort%,%artistsort%)/
$if($ne(%albumartistsort%,),
%artist% -
%date% -
%album% {%label% %catalognumber%}
[
$upper(%_extension%)
$if($eq(%_bitrate%,320.0),$set(_folderbr,320))
$if($eq(%_bitrate%,256.0),$set(_folderbr,256))
$if($eq(%_bitrate%,192.0),$set(_folderbr,192))
$if($eq(%_bitrate%,160.0),$set(_folderbr,160))
$if($eq(%_bitrate%,128.0),$set(_folderbr,128))
$if(
$gt(%_bitrate%,220.000),$if(
$lt(%_bitrate%,310.000),$if(
$gt(%_folderbr%,0),$set(_folderbr,V0)
)))
$if(
$gt(%_bitrate%,170.000),$if(
$lt(%_bitrate%,210.000),$if(
$gt(%_folderbr%,0),$set(_folderbr,V2)
)))
%_folderbr%
]/)$if($gt(%totaldiscs%,1),%discnumber%,)$if($ne(%albumartist%,),$num(%tracknumber%,2). ,)$if(%_multiartist%,%artist% - ,)%title%
In reality all it does is use the last instance that %_folderbr% checked. So right now it would rename everything as V2, and if I moved the V0 code block below it, it would rename everything to V0.
Any thoughts?