Hello.
I want to write a script on my own. The samples are documentation enough for me how to write one on my own.
So I tried the code you see in the bottom. It doesn't work. So I think, that the names for the TAGs (Album) is not right. What should I use instead of? And what should I use if I want th clear the Track number of a Track?
A short list with the most used TAG-names will be helpful to write some scripts on my own. I really want to do it on my own.
PS: a lot for the great work of this tool!
I want to write a script on my own. The samples are documentation enough for me how to write one on my own.
So I tried the code you see in the bottom. It doesn't work. So I think, that the names for the TAGs (Album) is not right. What should I use instead of? And what should I use if I want th clear the Track number of a Track?
A short list with the most used TAG-names will be helpful to write some scripts on my own. I really want to do it on my own.
PS: a lot for the great work of this tool!
Code:
public class Script : IScript
{
public bool Invoke(List<TrackData> tracks)
{
if (tracks == null) return false;
// Loop through all Music Tracks and perform the necessary action
foreach (TrackData track in tracks)
{
// Delete the album name
track.Album = null;
track.Changed = true; // Indicate that the track has been changed
}
return true;
}
public string Invoke(TrackData track)
{
return "";
}
}