Quick Sign In:  

Forum: Old versions

Topic: Accessing "played song" programmatically

Dieses Thema ist veraltet und kann veraltete oder falsche Informationen enthalten.

I'm running VDJ8 and am looking to do some customization. Is it possible to programmatically see a list of all songs that have been played during the current session? I realize this resets when you close/reopen the program or manually toggle this flag.

Thanks,
John
 

geposted Mon 02 Nov 15 @ 6:36 am
Create a filter folder.
I believe the action should be

Already played = 1
 

just have a look at the "my libary " tool in the download area.
this tool offers a lot of various filter folders. Also the one´s that might fit your needs.

If you just want a script for the currently played use :
exists = 1 and days since last play < 1
 

Thanks for the answers. I was wondering if there was a way to access this information from an external program. Imagine an app that can show a list of available songs but mark out the ones that have been played.
 

you can drag and drop the tracks you want to play to the side list and choose the option to remove when played. if you do not enable remove tracks they will still be displayed but marked as played.
 

It is possible for an external program to read your database and compare it with your history file(s).
Yes, why not. If you or someone else is a developer it could be done.
 

Cool. Thanks. I will try the comparison of the history files against the main database(s). I was also considering using the "last played" field (or whatever it's called) in the database XML. I was hoping there was a file just for "played" but now I see that it must be stored in memory/RAM.
 

Last played field is an option too.
Maybe its the better option if you are using 'lastplayed = today'
 



(Alte Themen und Foren werden automatisch geschlossen)