Old 28th November 2014, 08:02   #1
Jarikus
Junior Member
 
Join Date: Nov 2014
Posts: 5
Get current playlist file

In plugin I need obtain the path to current playlist file.

I have several playlist files:

C:\listRock.pls
C:\listTrance.pls

In each playlist I have some my extra data, sample:
__________________________________________________________
[playlist]

File1=E:\music\trance\another_world.mp3
backgroundImage=1.jpg
File2=E:\music\trance\another_world.mp3
backgroundImage=2.jpg

NumberOfEntries=2
__________________________________________________________

When I load playlist it converted to "Winamp.m3u" playlist and my extra data is loss.

How I can get the current playlist file? or how I can save extra data when playlist loaded?

I found only "IPC_GETPLAYLISTFILE" but it return only music file, not playlist.
Jarikus is offline   Reply With Quote
Old 28th November 2014, 11:46   #2
DrO
 
Join Date: Sep 2003
Posts: 27,873
once you load something into the main playlist editor there is no way to know what / where it came from. so that's why your custom data is ignored and not associated to what appears in the main playlist (especially as Winamp's pls loader has no knowledge of that field and so ignores it on import and even if it was recognised there's no mechanism from the main playlist editor to get such information from the playlist editor entries).
DrO is offline   Reply With Quote
Old 29th November 2014, 05:45   #3
Jarikus
Junior Member
 
Join Date: Nov 2014
Posts: 5
thank you
Jarikus 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