This question was buried in another thread so I wanted to post is as a single request hoping for a suggestion.
I want part of my Path to be different for MP3 and FLAC albums.
MP3 albums should have ($format $albumbitrate)
in the path and
FLAC albums ($format $bitdepth-$samplerate)
The album format is determined by the following code via the inline plugin
# Inline plugin template
album_fields:
format: |
formatList = []
for item in items:
formatList.append(item.format)
return formatList
Iāve tried the following in my path (and many many other formattings) but didnāt get it to work.
%if{$format:"FLAC",($format $bitdepth-$samplerate),($format $bitrate)}
I probably miss something in what I can put in the various %if statement fields.
As you can see my reasoning was that if my conditional is something like ā%if(format is FLAC then print information for FLAC otherwise print information for MP3 and AACā. But to no avail.
Thanks for any suggestions,
Jan
Ps: @adrian by the wayā¦ Iāve succeeded in creating different paths via the format:FLAC before the path like you suggested, but ran in to trouble when trying to achieve the same differentiation for FLAC and MP3 compilations. Didnāt find a way to combine format:FLAC with comp:
It would also have given me many paths to manage. Putting an %if in one path to server FLAC and MP3 would be less administration.