I have created an action for renaming folders based on extension.
With this code, if extension is flac it will add bitspersample and sample rate to the folder name otherwise it add the extension like MP3 or ALAC.
%ARTIST%'-'%YEAR%'-'%ALBUM% $if($eql(%_extension%,'FLAC'),"("$upper(%_extension%)")" '['%_bitspersample%'-'$cutRight(%_samplerate%,3)']','('$upper(%_extension%)')')
I have found that this code become not so useful for multi disc albums because of the different folder structures.
I am using a folder structure like below.
(level4) (level3)\ Level2 \Level1
mymusic\FLAC\Artist-year-Album\CD1
mymusic\FLAC\Artist-year-Album\CD2
In that folder structure above code only changes names of the CD1 and CD2 folders not Artist-year-Album this folder like below.
mymusic\FLAC\Artist-year-Album\CD1 [bitspersample-samplerate]
mymusic\FLAC\Artist-year-Album\CD2 [bitspersample-samplerate]
What I want to do is rename multi disc folders given below
mymusic\FLAC\Artist-year-Album [bitspersample-samplerate]\CD1
mymusic\FLAC\Artist-year-Album [bitspersample-samplerate]\CD2
First of all is there any way to change name of the Artist-year-Album folder given above with an action ? if yes than an if condition might be a solution for that like
if total disc is equal and greater than 2 change the name of level 2 folder otherwise change the name of level 1 etc.
whenever I run this code it create new %ARTIST%'-'%YEAR%'-'%ALBUM% folders then CD2 folders.
$ifgreater(%discnumber%,1,%ARTIST%'-'%YEAR%'-'%ALBUM% $if($eql(%_extension%,'FLAC'),"("$upper(%_extension%)")" '['%_bitspersample%'-'$cutRight(%_samplerate%,3)']','('$upper(%_extension%)')')\CD%discnumber%,%ARTIST%'-'%YEAR%'-'%ALBUM% $if($eql(%_extension%,'FLAC'),"("$upper(%_extension%)")" '['%_bitspersample%'-'$cutRight(%_samplerate%,3)']','('$upper(%_extension%)')'))