Hey, I wrote two pieces of code that suit my needs best for arranging my music library in foobar but I can't find a way to merge them so they work together.
#1
$if(
%album%
,
[$if2(%album artist%,%artist%)]|['['[%date%]']' ][%album%]|[[%discnumber% - ]%tracknumber%. ]%title%
,
[$if2(%album artist%,%artist%)]|Misc|%title%
)
#2
$if(
%totaltracks%
,
[$if2(%album artist%,%artist%)]|['['[%date%]']' ][%album%]|[[%discnumber% - ]%tracknumber%. ]%title%
,
--Incomplete albums--|[$if2(%album artist%,%artist%)]|%title%
)
#1
I have some songs that belong to an artist I listen to a lot but don't fall into any albums, so I'd like to keep them under Artist/Misc.
Example:

I listen to a lot of Queens of the Stone Age but to little R.E.M. - the Misc folder keeps all the covers, alternative versions etc. in one place but I also want R.E.M. out of the picture until I get at least one full album
#2
The second code puts all the single songs that I wish to keep but don't have or want the whole album (therefore no %totaltracks% value) in a separate tree (Incomplete Albums/Artist/Album), so the almost empty "albums" don't appear in the main Artist/Album tree and don't clutter the view. Example (inside "Incomplete Albums" tree):

Main Artist/Album tree looks neat but all the "Misc" songs end up under Incomplete tree.
Is there any way to keep "Misc" under respective artist AND put single songs away under "Incomplete Albums"? I guess I could just give all the "Misc" songs fake %totaltracks% but I'm interested in a solution rather than a workaround.