Request: Conditional Actions


I have a number of Actions defined that I'd like to be able to use on different kinds of files - mp3, flac, ape, ogg, etc.

Unfortunately, the tag names differ in the different file types. Using the suggestion of someone in these forums, I have some Actions defined with a series of rules like the following:

Format value "ALBUMSORT": $if($eql(%_extension%,flac),%tmp_artistsort%|%year%|%tmp_albumsort%,)

Format value "TSOA": $if($eql(%_extension%,mp3),%tmp_artistsort%|%year%|%tmp_albumsort%,)

It sure would make life easier if there where some type of mechanism where the field name itself could be variable, based upon the file type (or the extension). If this capability exists now, or if there's a way to do the above example with a single rule, then I'd love to hear about it.

How to better handle multiple file types

I'll add something like this to the next release.

Best regards,
~ Florian


This can now be done with the latest Development Build by using scripting functions at both the Source format and the Guessing pattern at the action type Guess values.

For your example, just use these strings:

Source format %tmp_artistsort%|%year%|%tmp_albumsort%

Guessing pattern $if($eql(%_extension%,flac),%%ALBUMSORT%%,$if($eql(%_extension%,mp3),%%TSOA%%,))

Best regards,
~ Florian

P.S. Thanks to dano, for the original idea for this solution :slight_smile:


I had to revert the changes from 2.33c to 2.33d, because it broke other things (mainly the basic formatstrings).

Sorry for that - maybe I'll find another solution.

Best regards,
~ Florian


Thanks for the effort Florian. I'm afraid I tried the solution, but didn't find it any easier to use. It was confusing and very difficult to read. Also, for more than two codecs or extensions, the old way was much easier. Hopefully some clear syntax can be devised, perhaps a new type of action.