PDA

View Full Version : Adding to a Playlist


DrChek
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?

Thanks.

sp1ff
19th October 2005, 19:59
I'm trying to solve this problem, too. Anyone have any ideas?

Joel
21st October 2005, 00:27
Maybe somewhere in ml.h from the Winamp SDK? :)

sp1ff
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...

sp1ff
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.