by MisterFlix » Wed Mar 04, 2020 10:54 am
In my media manager, I like to have playlists of "Toprated + <each Genre>" and "Unrated + <each Genre>."
Of course, creating those playlists by hand is rather cumbersome, so when I found out that MM5 scripting is done via Javascript, a language I'm already fairly comfortable with, I got to work immediately.
So far, I have a script that can tell me which Playlists I still need to create, and which are superfluous. However, the creatio (and deletion) process is still manual, hence my question (as I can't seem to manage to grasp it from the API Doc and Database):
How do I create an AutoPlaylist?
How do I delete a Playlist?
If creating an AutoPlaylist isn't possible [at this point (?)]:
How do I create a normal Playlist, and add/remove songs from it?
Overall, this option can also work, though it would of course mean that I'd have to run the script after any change in rating again...
Thank you very much!
In my media manager, I like to have playlists of "Toprated + <each Genre>" and "Unrated + <each Genre>."
Of course, creating those playlists by hand is rather cumbersome, so when I found out that MM5 scripting is done via Javascript, a language I'm already fairly comfortable with, I got to work immediately.
So far, I have a script that can tell me which Playlists I still need to create, and which are superfluous. However, the creatio (and deletion) process is still manual, hence my question (as I can't seem to manage to grasp it from the API Doc and Database):
How do I create an AutoPlaylist?
How do I delete a Playlist?
If creating an AutoPlaylist isn't possible [at this point (?)]:
How do I create a normal Playlist, and add/remove songs from it?
Overall, this option can also work, though it would of course mean that I'd have to run the script after any change in rating again...
Thank you very much!