Sometimes music files have Genres that are spelled differently than my pre-defined Genre: "Hip-Hop".
My question is, can I make an Action that will auto rename the Genre such as "Rap" to my pre-defined values, i.e. "Hip-Hop"? Or "Soft-Rock" "Hard-Rock" "Metal-Rock" to just "Rock"?
I have an action for changing the variation of "featuring" to ft. and it's amazing. If I can run a couple of scripts somehow to auto rename the Genres it'd make things incredibly better!
So, I'm going to have to "evolve" the pattern as I come across new misspellings? Then just enter them into the patter, and place whatever Genre I want?
That's pretty straight forward. Very nice. This will work with multiple files of different Genres, right?
The fuction replaces the words from left to right. So the replace-pair "Hip Hop/Rap,Hip-Hop" left from the shorter replace-pair "Rap,Hip-Hop", Otherwise the combination "Hip Hop/Rap" can not be found and "Hip Hop/Hip-Hop" is left over.
this works:
$replace(%genre%,Hip Hop/Rap,Hip-Hop,Rap,Hip-Hop,...,...)
this does not work:
$replace(%genre%,Rap,Hip-Hop,Hip Hop/Rap,Hip-Hop,...,...)
and yes, you have to "evolve" the pattern as you come across new misspellings. can get pretty long.
and yes, this will work with multiple files of different Genres.
$regexp(%genre%,.*Rock,Rock,1)
this will transform all combinations which end with "rock" into "Rock". The "1" at the end is for ingoring case, so also "rock" will be transformed into "Rock"
$regexp(%genre%,^(Rap|Hip Hop|Hip Hop/Rap)$,Hip-Hop)
this will transform the thre expressions in the parentheses into "Hip-Hop", but only if they are the only word in the tag field. So it makes no difference here, in which order you write the regular expressions.
$regexp(%genre%,(.)','.,$1)
this will pick the first genre if you have multiple genres seperated by a comma, like "Techno, Electronic".
Thanks a ton!!!!! Some useful information - I know the more I learn the more it can optimize my work. My collection is pretty "clean" and it's all because of mp3tag.