SK1NNER
Lt. Junior Grade
- Registriert
- Feb. 2011
- Beiträge
- 294
Hallo,
ich habe hier in MediaMonkey ein paar Alben, die falsch benannt sind, und zwar folgendermaßen:
):
Dieses Script liegt MediaMonkey standardmäßig bei und kann den Titel und den Interpret vertauschen.
Vielen Dank im Vorraus, bin gespannt, ob das jemand schafft !
ich habe hier in MediaMonkey ein paar Alben, die falsch benannt sind, und zwar folgendermaßen:
Jetzt möchte ich, dass es so aussieht (so wie es ja sein sollteTitel: Interpret - Songtitel Interpret: Various
Und da es insgesamt ca. 700 Songs sind, die so benannt sind, wollte ich es eigentlich über die Script-Funktion machen. Da ich mich da aber nicht auskenne, wollte ich fragen, ob mir jemand das folgende Script umschreiben könnte:Titel: Songtitel Interpret: Interpret
Code:
' A simple script that swaps the content of Title and Artist fields of selected tracks
Sub SwapArtistTitle
' Define variables
Dim list, itm, i, tmp
' Get list of selected tracks from MediaMonkey
Set list = SDB.CurrentSongList
' Process all selected tracks
For i=0 To list.count-1
Set itm = list.Item(i)
' Swap the fields
tmp = itm.Title
itm.Title = itm.ArtistName
If itm.AlbumArtistName = itm.ArtistName Then ' Modify Album Artist as well if is the same as Artist
itm.AlbumArtistName = tmp
End If
itm.ArtistName = tmp
Next
' Write all back to DB and update tags
list.UpdateAll
End Sub
Dieses Script liegt MediaMonkey standardmäßig bei und kann den Titel und den Interpret vertauschen.
Vielen Dank im Vorraus, bin gespannt, ob das jemand schafft !