Reversing Genre Order


#1

I've made a mistake with my tagging of 10 000 plus tracks using multiple genre tags in that I've put them in the form of

example Jazz\\Alternative\\Indie with Jazz being the main genre

sometimes I've just used one genre, other time 2,3,4 + sub-genres.

What I didn't realize is that my sonos system that reads the FLAC's only catalogues by the last tag, in the above case Indie.

Is there a way of reversing all genre entries

e.g Indie\\Alternative\\Jazz

irrespective of how many tags (sub genre entries) I've used

Here's fingers crossed for a solution :rolleyes:

Regards helpless


#2

Hmm, ... if Mp3tag would support it's own functions in the "Replace" part of it's regexp() function, then it would be something like this ...

$trim($regexp('\'$reverse($meta_sep(GENRE,'\\\\'))'\','\\\\(.+?)\\\\',$reverse($1)'\\\\'),'\')

... but sadly it isn't so.

DD.20100121.2252.CET

Edit.
The following Mp3tag scripting expression can be used to move the trailing value to become the leading value in a multi-value tag-field, i. e. moving from last position to first position.

Action "Format value" or Converter "Tag - Tag"
Field: GENRE
Format string:

$regexp($meta_sep(GENRE,'\\\\'),'^(.+)\\\\(.+)$','$2\\\\$1')

DD.20120417.1222.CEST


#3

Action: Format Value
Field: GENRE
Formatstring: $meta(genre,9)\\$meta(genre,8)\\$meta(genre,7)\\$meta(genre,6)\\$meta(genre,5)\\$meta(genre,4)\\$meta(genre,3)\\$meta(genre,2)\\$meta(genre,1)\\$meta(genre,0)

This is for a maximum of 10 genres, if you have more just add them at the begin of the formatstring.