View Full Version : Adding to a Playlist
3rd September 2004, 17:14
I'm trying to write a plug-in that will respond to a keystroke command by sending the currently playing song to a playlist, just like the Send To submenu does.
I've got the part about responding to the keystroke and getting the currently playing file, but how can I add the currently playing song to a playlist in the media library?
19th October 2005, 19:59
I'm trying to solve this problem, too. Anyone have any ideas?
21st October 2005, 00:27
Maybe somewhere in ml.h from the Winamp SDK? :)
23rd October 2005, 17:10
Well, I looked around a bit. I can see how to walk the ml tree to find out what playlists are there easily enough. But I dunno how to actually modify them.
I tried ML_IPC_ADDTREEITEM with no luck...
30th October 2005, 00:49
Just to close this out: I ended up just writing directly to the .m3u files under Plugins/ml. Note: if you've got a given playlist selected in the ML, write a new song to it's file, and then change the selection, the ML will overwrite your changes.
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.