I have been in the documentation, guides, and forums for the last few days trying to work out how (or even if this is possible) to set output paths based an some genre types (not all genres). One of my big issues is that when I’m playing my music randomly a Christmas song will get thrown into the mix because it is sonically similar when I am playing an artist station, etc.
I created a custom tagging script:
$noop( Initialize multi-value variables )
$setmulti(_classical,
'classical';
'symphony'
)
$setmulti(_holiday,
'christmas';
'christmas music'
)
$setmulti(_relaxing,
'field recording';
'nature sounds';
'meditative';
'relaxation';
'relaxation - nature'
)
$setmulti(_spiritual,
'alternative ccm';
'ccm';
'christian';
'contemporary christian';
'religious'
)
$noop( Assign path from genre )
$set_a(_folder,'')
$while($eq(%_folder%,''),
$foreach(%genre%,$if($inmulti(_classical,$lower(%_loop_value%)),$set_a(_folder,classical)))
$foreach(%genre%,$if($inmulti(_holiday,$lower(%_loop_value%)),$set_a(_folder,holiday))) $foreach(%genre%,$if($inmulti(_relaxing,$lower(%_loop_value%)),$set_a(_folder,relaxing_sounds)))
$foreach(%genre%,$if($inmulti(_spiritual,$lower(%_loop_value%)),$set_a(_folder,spiritual)))
$if($eq(%genre%,''),$set_a(_folder,none))
$set_a(_folder,music)
)
…and here is my naming script
%_folder%/
$if2(%albumartist%,%artist%)/
$if(%albumartist%,%album%/,)
$if($gt(%totaldiscs%,1),%discnumber%-,)
$if($and(%albumartist%,%tracknumber%),$num(%tracknumber%,2) ,)
- %title%
Based on my reading, I was under the impression that you could pass an output from the tagging script to the naming script. I also tried disabling the tagging script and putting this code into my naming script, but neither scenario produced the desired results. I tested on several albums that I specifically picked based on their genre tags for testing purposes.
As a side note, I created a “none” folder for my albums without tags so I could start adding tags in Musicbrainz to contribute to community.
Any assistance would be so greatly appreciated.