Old 3rd September 2004, 17:14   #1
DrChek
Junior Member
 
Join Date: Sep 2004
Posts: 1
Adding to a Playlist

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.
DrChek is offline   Reply With Quote
Old 19th October 2005, 19:59   #2
sp1ff
Junior Member
 
sp1ff's Avatar
 
Join Date: Sep 2003
Posts: 15
Send a message via ICQ to sp1ff
I'd like to know, too

I'm trying to solve this problem, too. Anyone have any ideas?
sp1ff is offline   Reply With Quote
Old 21st October 2005, 00:27   #3
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
Maybe somewhere in ml.h from the Winamp SDK?


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 23rd October 2005, 17:10   #4
sp1ff
Junior Member
 
sp1ff's Avatar
 
Join Date: Sep 2003
Posts: 15
Send a message via ICQ to sp1ff
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 is offline   Reply With Quote
Old 30th October 2005, 00:49   #5
sp1ff
Junior Member
 
sp1ff's Avatar
 
Join Date: Sep 2003
Posts: 15
Send a message via ICQ to sp1ff
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.
sp1ff is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump