Help - Search - Members - Calendar
Full Version: Location of temporary playlist
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
ShadowMare
Hi there!

I'm using foobar2000 for a quite long time and i'm veeeery happy with it smile.gif
Now my Question:

Do you have an idea where the now playling playlist is stored? Because foobar2000 knows the last one at startup!
I had a look to /playlists but the temporary one is not there.


Thanks in advantage!
Yirkha
There is no "temporary" or "now playing" playlist. All playlists are equal.
ShadowMare
Thanks for your reply.
I think my question was not quite good, so here it is again:

I am writing an application that needs some information about the actually selected playlist. You know, the one you see, when you just play some tracks. Call it working/now playing/temporary - whatever! This playlist is not saved by the user, but by fb2k, because it recognizes your last playlist and restores it.
Now I need this so called playlist, it has to be anywhere on my disc, but I'm not able to find it.
Can you help me?
Another solution for getting the tracks out of this playlist is good, too smile.gif
shakey_snake
QUOTE (ShadowMare @ Sep 20 2009, 16:36) *
You know, the one you see, when you just play some tracks. Call it working/now playing/temporary - whatever!
This could be any of the playlists found in %appdata%\foobar2000\playlists (for a typical install)


QUOTE (ShadowMare @ Sep 20 2009, 16:36) *
This playlist is not saved by the user, but by fb2k, because it recognizes your last playlist and restores it.
Sure, foobar knows which playlist is being played.

QUOTE (ShadowMare @ Sep 20 2009, 16:36) *
Now I need this so called playlist, it has to be anywhere on my disc, but I'm not able to find it.
You're not conceptualizing this correctly, obviously.


QUOTE (ShadowMare @ Sep 20 2009, 16:36) *
Can you help me?
Another solution for getting the tracks out of this playlist is good, too smile.gif
Well, you can get the SDK and develop a foobar2000 component to save the relevant information in a format and place that is useful and findable by your application.
Frank Bicking
All playlists are written to the "playlists" folder you mentioned, including the active and playing playlist, but these files are not meant to be read by other applications. In fact, there is no public specification of the FPL file format, so even if you knew which one to access, you could not read its content anyway (see the FAQ for reasons).

Creating a foobar2000 component that passes information to your application is the right way to go. This would also allow you to immediately react to changes made by the user, if that is required by your program. More details on what you are trying to achieve would be helpful to provide a proper solution.

For completeness' sake: there is a "playing" playlist, which contains the currently playing track (unless the user removes it during playback), and there is an "active" playlist, which is the one currently visible to the user in the playlist view.
ShadowMare
Thank you!

I thought the active wink.gif Playlist would be refreshed during playback, so I didn't identify it correctly. Now I know that it is refreshed during foobar2000 shutdown.
I'm not that fast with new SDKs sad.gif It is just that small function that writes the playlist to a file, preferably in the foobar2000 folder. Could be auto-refreshed or through a window handler call. Has anyone the time to do that for me? rolleyes.gif That would be damn cool and you will get a big special thanks for that!
mixcherry
That should be not too hard to code, but what do you want it for, exactly? What information about active (playing?) playlist do you need? Maybe there's better way to solve your problem.
ShadowMare
Would be really great if you can do that for me!

I only need the title and artist names and perhaps the number in the playlist, but I can get the numbers trough counting the track names as well, I think!
Something like that:

%artist% - %title%

that would be enough =)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.