快速登录:  

Forum: Old versions

话题: Accessing "played song" programmatically

由于该帖子已年深日久,可能包含陈旧过时或描述错误的信息。

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
 

发表时间 Mon 02 Nov 15 @ 6:36 am
PachNPRO InfinityMember since 2009
Create a filter folder.
I believe the action should be

Already played = 1
 

发表时间 Mon 02 Nov 15 @ 12:24 pm
RobRoyPRO InfinitySenior staffMember since 2012
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
 

发表时间 Mon 02 Nov 15 @ 12:28 pm
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.
 

发表时间 Mon 02 Nov 15 @ 4:31 pm
RobRoyPRO InfinitySenior staffMember since 2012
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.
 

发表时间 Mon 02 Nov 15 @ 4:45 pm
PachNPRO InfinityMember since 2009
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.
 

发表时间 Mon 02 Nov 15 @ 6:38 pm
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.
 

发表时间 Mon 02 Nov 15 @ 7:12 pm
PachNPRO InfinityMember since 2009
Last played field is an option too.
Maybe its the better option if you are using 'lastplayed = today'
 

发表时间 Tue 03 Nov 15 @ 10:25 am


(陈旧帖子或论坛版块会自动关闭)