AlbumArtistName not writen in DB

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

flint
Posts: 2
Joined: Sat Oct 01, 2005 10:02 am

AlbumArtistName not writen in DB

Post by flint »

Hi

I use the following simple script to copy the artistname to the album artist name.

' A simple script that copies the content of the Artist Name to the Album Artists Name field of selected tracks

Sub CopyArtist2AlbumArtist
' Define variables
Dim list, itm, i, album

' Get list of selected tracks from MediaMonkey
Set list = SDB.SelectedSongList
If list.count=0 Then
Set list = SDB.AllVisibleSongList
End If

Set albums = list.Albums
j=0
' Process all selected tracks
For i=0 To list.count-1
Set itm = list.Item(j)

' Copy the fields
itm.AlbumArtistName = itm.ArtistName

' Update the changes in DB
itm.UpdateDB
Next
End Sub


When I execute the script the album artist name is changed in the MM window. But when I select anohter view and go back. The original name for the album artist is put back. I can change the name using the normal tool options. But I wan't to change my complete db in one time (over 11000 songs).

I read a lot of sugestions. This is what I tried.

Check if the ISDBSongData has a property Album, because if it has not it might be impossible to save the name. But my knowledge of scripts fails or each song has this property.

I would like to have some pointers (small pices of script would be great) to help me on my way.

Thanks
psyXonova
Posts: 785
Joined: Fri May 20, 2005 3:57 am
Location: Nicosia, Cyprus
Contact:

Post by psyXonova »

After you have changed the album artist and before swithing view, select all your files and press Ctr + S to save changes in the tags. That should do the job.
You cal also do that using scriptin but i can remember the method and i am away from my personal PC now....

Hope it helps

Maybe you would like to try this first with about 50 song to see if it is solving your problem before procceding tou your whole collection :lol:
flint
Posts: 2
Joined: Sat Oct 01, 2005 10:02 am

Post by flint »

Hi saw 2 lines that didn't belong in the script and try to make the layout better

[code]
' A simple script that copies the content of the Artist Name to the Album Artists Name field of selected tracks

Sub CopyArtist2AlbumArtist
' Define variables
Dim list, itm, i, album

' Get list of selected tracks from MediaMonkey
Set list = SDB.SelectedSongList
If list.count=0 Then
Set list = SDB.AllVisibleSongList
End If

' Process all selected tracks
For i=0 To list.count-1
Set itm = list.Item(j)

' Copy the fields
itm.AlbumArtistName = itm.ArtistName

' Update the changes in DB
itm.UpdateDB
Next
End Sub
[/code]
psyXonova
Posts: 785
Joined: Fri May 20, 2005 3:57 am
Location: Nicosia, Cyprus
Contact:

Post by psyXonova »

flint wrote:Hi saw 2 lines that didn't belong in the script and try to make the layout better

Code: Select all

' A simple script that copies the content of the Artist Name to the Album Artists Name field of selected tracks


      For i=0 To list.count-1
        Set itm = list.Item(j)

   
Hmm, by the way...
shouldnt it be
Set itm = list.Item(i)

and not...
Set itm = list.Item(j)
???
judas
Posts: 572
Joined: Thu Jun 02, 2005 11:26 pm
Location: Bogotá, Colombia

Post by judas »

The same problem has been noted here, allthough not aparent solution has been found?

http://www.mediamonkey.com/forum/viewtopic.php?p=43424

and probably here (sort of)

http://www.mediamonkey.com/forum/viewtopic.php?t=9370

cheers...


judas
Post Reply