I have downloaded MP3TAG to a new computer and require some assistance.
Stupidly I did not take a backup of my original which had purpose made 'ACTIONS'
I have lost my copy of the syntax code to create 2 separate 'Actions'
To enable ARTISTSORT to convert for example, (Artist) Elvis Presley to Artistsort) Presley, Elvis.
To enable ARTISTSORT to convert for example (Artist) The Beatles to (Artistsort) Beatles, removing the 'The' from group names.
I would appreciate some help.
A Basic 'Idiots' Guide in creating the actions would be appreciated.
For the first you could create an action like this:
$regexp(%artist%,(.*) (.*),$2',' $1)
This creates (or overwrites) ARTISTSORT like you want.
But as soon as you have more than one artist or artists that are bands instead of people it stops working. Depending on how your artists are named you could enhance the regex to work for multiple patterns, like "artist A, artist B" or "artist A, artist B & artist C" etc.. but you should always filter before using the action and check the results.
If the "the" messes up the sorting (which I can understand as the Beatles called themselves "The Beatles" and occasionally just "Beatles" which would lead to some entries to be found under "B" and others under "T"...) I would still look at it with a sober glance and estimated rationally:
Does the "the" really determine the correct sorting order or aren't all the name parts in front of the "the" already enough to get it sorted correctly?
I would assume that the existence of "the" does not change anything. So I would simply leave that out which means: just delete the leading "The".
And even this simple rule has its exceptions as artists like "The Band" or "The The" simply are not the same without the "The".
And for all the other names I am still of the opinion that it does not make any sense as there would be too many exceptions so that finding artists will not become any easier.
Which means: in general, leave every artist name as it is.
Any decent player will look for name parts and group all the hits together.
Scrolling through lists of artists just to see what is there will become an exhausting and time consuming method if you have more then (say) 50 different ones.
For my own collection I've "solved" this issue by pretty much ignoring the "artist" and unifying the albumartist. Artist remains whatever was on the cover of the album, while albumartist gets the standard name of the main responsible person/band (or multiple). Some people even change their name multiple times over the course of their career. Otherwise I would never ever find stuff that belongs together without going to discogs/wikipedia first.
Interesting!
So - for example - do you use "Cat Stevens" as ALBUMARTIST even for his releases as "Yusuf Islam"?
Or do you use his real name "Steven Demetre Georgiou"?
Usually the name the artist is best known as, so to a degree it's arbitrary or rather depends on which name I know best. The upside is that since I don't touch the artist, services like lastfm still work correctly as they only scrobble title/artist/album. I pretty much only use my library by albumartist.
Another quirk is that I also use the albumartist for tribute albums.
For example: "One Of These Days - Plays Pink Floyd" by "The Royal Philharmonic Orchestra" gets a secondary albumartist of "Pink Floyd V.A." for me. That way I can click on Pink Floyd V.A. directly under Pink Floyd and get all the tribute albums in one place. Which is especially useful for tribute albums where the bands name is not part of the album title. Otherwise I'd never ever find them again.
These 2 actions create/change the ARTISTSORT tag depending on the content of the ARTIST tag.
If ARTIST is Elvis Presley, action 1 sets ARTISTSORT to Presley, Elvis.
If ARTIST is The Beatles, action 2 sets ARTISTSORT to Beatles.
If you execute the 2 actions in that order, then I assume that the second will not remove any leading "the" as the first action has already moved the "the" to the end.
Also watch out for exceptions like "The The", "The Band", "The Weeknd", "The XX"
So how do I create 2 separate actions as you describe under ARTISTSORT tag.
I created the first string of your examples and it changed to Presley, Elvis (Great)
I created a second string named (Remove 'The') and altered the string to your second example, it cleared previous altered sort names and did nothing to removing 'The' from group names.
When I had it working before. I Would select all groups with 'The' in their name, apply the action and it would remove 'The'
I Had two separate actions.
I Am not able to create two this time.
Thanks
Just use this action carefully as that action (and/or MP3tag) cannot read. It simply swaps the defined parts around and adds a comma in between.
So, "Huey Lewis & The News" would become "Lewis & The News, Huey".
Other groups that clearly do not feature a first name / last name structure like
Aural Float
Deep Purple
Global Youth
Rolling Stones
and many, many more
would get their names altered
I would never expect "Depeche Mode" to be found under "M" for "Mode, Depeche".
Sorry about that. I forgot that mp3tag is a bit overactive when you use $regexp. I wish there was an option to simply abort if no match is found instead of using the input string as the output.
This checks if the match in the regex is equal to the artist tag (which means no match), in which case ARTISTSORT is left alone. If it's not equal (match found), it removes the "The" and saves the resulting string to ARTISTSORT.
I've gone ahead and created both actions, you can drop them in:
Right I have added both of your suggested actions.
1st action works perfectly
2nd action works perfectly
I would be interested if you had any suggestions of reading / learning material for basic syntax coding? I feel it is only the tip of the iceberg what can be achieved if I had the correct code.
Brilliant.
Thanks for your help.
If you mean programming as such, I can recommend this Python course which covers most of the basics. The instructor is great.
The principles are pretty much the same, the only thing that differs is the syntax. For regular expressions, this video is a good introduction.
But it also helps to just play around with regex yourself.
I usually use RegExr to test my regexes and Regexper to visualize them (this often reveals common pitfalls like using . instead of \. for example.
Good luck.
And feel free to ask for some more regex help. I'm the rare breed of deviant that enjoys regex.
I understand your logic, but my music system displays Artists as they normally appear for example: (Artist Name) Chris Rea (Sort Name) Rea, Chris. (Artist Name) Marvin Gaye & Tammy Terrell (Sort Name) Gaye, Marvin; Terrell, Tammy (Artist Name)The Beatles (Sort Name) Beatles.
I search for any Artist by Surname / Group and the correct artists are shown.
I use dbpoweramp excellent Asset programme for creating the metadata within my music files, and everything works as it should.