by Mike24 » Tue Jan 10, 2017 3:46 pm
How to keep MM from adding a song in a playlist twice - by it's title not by it's id?
I already wrote some scripts on reading playlists, doing avanced reporting and so. But now I want to do something more advance. I know there is already a function included in MM which prevents adding a song twice in a playlist. But this is based on the id of a song not by it's title.
So if I have a playlist which already contains e.g. Nothing Compares 2 U by Prince I wan't to forbid adding Nothing Compares 2 U by Sinead O’Connor.
How can I catch the event when a song (or a list of songs) is added by drag and drop to a playlist so that I can check wheather it's name is already in the list an cancel the drop?
Any hints welcome
Mike
How to keep MM from adding a song in a playlist twice - by it's title not by it's id?
I already wrote some scripts on reading playlists, doing avanced reporting and so. But now I want to do something more advance. I know there is already a function included in MM which prevents adding a song twice in a playlist. But this is based on the id of a song not by it's title.
So if I have a playlist which already contains e.g. Nothing Compares 2 U by Prince I wan't to forbid adding Nothing Compares 2 U by Sinead O’Connor.
How can I catch the event when a song (or a list of songs) is added by drag and drop to a playlist so that I can check wheather it's name is already in the list an cancel the drop?
Any hints welcome
Mike