Some of my FLAC tags have multiple entries in a single Tag field e.g. the Genre entry may contain "Rock, Classic Rock, Hard Rock". Entries are always separated by a comma or other delimiter ';'.
Whilst I would like to maintain each of the entries within the Gentre tag, it seems a preferred approach is to create multiple Genre tags, each with a discrete entry, whereby the abovementioned example would result in three Genre tags for the track in question, the first being "Rock", the second being "Classic Rock" and the third being "Hard Rock".
So my question is, is there a way to traverse a series of tracks and parse the existing Genre tags, searching for a "," or a ";" and if found, to parse the string and create an additional Genre tag for each entry, and then finally changing the first Genre tag to remove the additional entries?
Action #1 Actiontype 5: Format tag field Field: GENRE Formatstring: $regexp(%genre%,','|;,\\)
or Formatstring: $regexp(%genre%,',|;','\\')
or Formatstring: $regexp(%genre%,'\s*[,;]\s*','\\') (respects spaces around delimiters)
End Actionsgroup TEST_egd (1 Action)
Afterwards press [Ctrl+S] or use menu dialog to save tag.
If you respect point "2. Afterwards press [Ctrl+S] or use menu dialog to save tag.", then Mp3tag will create a single tag field for each genre item in mp3 file.
I do not know if this procedure works with other music file types too e. g. wma.
One thing to note - the point 2 part only works so long as the TAG entries for the selected tracks whose specific tags you're wanting to work on are identical, so the best thing to do is sort by tag value and then apply point 2.
The tag editor feature seems buggy when working with artist fields that have multiple values. When I try to set multiple artists on wma lossless files, either by using the "\\" trick or by adding an ARTIST field multiple times in extended tag editor, I get duplicate values and other problems. (For instance: Brahms\\CSO\\Perlman\\CSO\\Brahms). I've tried various ways to correct it, but none of the corrections "take." Possibly it was not designed to edit tags that have multiple values.
--I can edit these values successfully using the wmp 11 built-in tag editor, but perhaps this is not well documented for wma files.