Hello and Happy New Year!!
I have a system where I have custom fields for multiple genres to attach to a song. So I have the regular %genre% along with %genre1%, %genre2%, %genre3% and so on.
When I am done tagging I just append all these terms to the %genre% field using "/" as the delimiter. In order to do this, I have created this tag to tag action with the field %genre% formatted by the following string:
%genre%$if(%genre1%, / %genre1%,)$if(%genre2%, / %genre2%,)$if(%genre3%, / %genre3%,)$if(%genre4%, / %genre4%,)$if(%genre5%, / %genre5%,)$if(%genre6%, / %genre6%,)$if(%genre7%, / %genre7%,)$if(%genre8%, / %genre8%,)$if(%genre9%, / %genre9%,)$if(%genre10%, / %genre10%,)
It works well but sometimes there are duplicate terms. I am trying to figure out how to modify the string to tell MP3Tag to not include the term if it is previously found in any of the other fields.
For example if %genre% is "Christmas / Blues / Subdued" and %genre1% is "Christmas" then the term "Christmas" would not be appended to %genre%.
Similarly if %genre1% is "Jazz% and %genre3% is "Jazz", then only one instance of "Jazz" would be appended to %genre%. Where the result for %genre% would be "Christmas / Blues / Subdued / Jazz"
I am also wondering if I could modify the guess values action to reverse distribute the terms found in %genre% to the %genre1% %genre1% %genre3% fields, and so on, but only if they are not duplicated. Where the Source format would be %genre% and the guessing pattern would be %genre1% / %genre2% / %genre3% / %genre4% and so on.
I am just not sure how to instruct MP3Tag to skip a term if it is a duplicate.