Thanks for the VERY useful script!
Among the presets I particularly appreciate one that removes the artist from the genre and was wondering what the code would be to do the same for the title and the album. Any help would be appreciated!

lapillus wrote:Among the presets I particularly appreciate one that removes the artist from the genre and was wondering what the code would be to do the same for the title and the album.
ZvezdanD wrote:lapillus wrote:Among the presets I particularly appreciate one that removes the artist from the genre and was wondering what the code would be to do the same for the title and the album.
You should be more specific what exactly you want with some examples of your current title/album. Do you have artist at the begin of the title/album or on the end or in the middle, what is a separator between them...? If you have the album name like "Artist - Album" you could use the "Remove Artist name and " - " or "-" from the begin of <Into Field>..." preset.
lapillus wrote:I meant remove the Artist and the Album that have been added to the list of genres by the GenreFinder Extension.
AshwinP wrote:How is it then that the MM search feature is able to find tracks with a string, but the same is not found when using this tool...
- What is your version of the program and this add-on?
- Did you select all tracks from the Library before you entered the RegExp Find & Replace dialog box?
- What is your settings in the mentioned dialog box? Could you post its screenshot?
- What is your string that you are looking for?
- Did you have selected the field which contains that string in the Options dialog box > Library/Search sheet (relevant only if you choose All Text Fields)?
AshwinP wrote:- Did you have selected the field which contains that string in the Options dialog box > Library/Search sheet (relevant only if you choose All Text Fields)?
Did not get the last question, where can I find this option?
AshwinP wrote:So, question is if the string really isnt there, then why is MM search showing me the results...?
AshwinP wrote:If there is a way I can send you a track and you can try it for yourself.
AshwinP wrote:the question is if these fields are omitted in MM, why is a search on the track in MM showing results (Bug???)...
AshwinP wrote:Can these 2 fields also be added as Text fields to the ReqEx tool???
Find what: ^.*
Into: Album Artist
Regular expression 1: checked
Replace with: SQLQuery("SELECT group_concat(AA, '; ') FROM (SELECT DISTINCT Artists.Artist AS AA FROM Songs INNER JOIN ArtistsSongs ON Songs.ID = ArtistsSongs.IDSong AND (ArtistsSongs.PersonType = 1 OR ArtistsSongs.PersonType IS NULL) INNER JOIN Artists ON ArtistsSongs.IDArtist = Artists.ID WHERE IDAlbum = " & oSongData.Album.ID & ")")
VBScript expression: checked
Question: Is it possible to Copy all Artist of the track then add them (cumulative) to Album Artist?
I hate having Album Artist as "Various Artist"
So I tend to copy the Artist of each track, listing them in order from Track 1>Infinity. So to further expand the question, is that possible?
For example:
Track: 1, Artist: A, Album Artist: A
Track: 2, Artist: B, Album Artist: A
Track: 3, Artist: C, Album Artist: A
(RegExp Find & Replace)
Track: 1, Artist: A, Album Artist: A;B;C
Track: 2, Artist: B, Album Artist: A;B;C
Track: 3, Artist: C, Album Artist: A;B;C
Beggar wrote:What I want to ask for is, it is possible to have it not in Alphabetic order but in order of 'Appearance'?
SQLQuery("SELECT group_concat(AA, '; ') FROM (SELECT DISTINCT Artists.Artist AS AA FROM Songs INNER JOIN ArtistsSongs ON Songs.ID = ArtistsSongs.IDSong AND (ArtistsSongs.PersonType = 1 OR ArtistsSongs.PersonType IS NULL) INNER JOIN Artists ON ArtistsSongs.IDArtist = Artists.ID WHERE IDAlbum = " & oSongData.Album.ID & " ORDER BY CAST(Songs.TrackNumber AS int))")Users browsing this forum: Google [Bot] and 11 guests