Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: looking for component to bind files by date to a playlist (Read 1560 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

looking for component to bind files by date to a playlist

hi there!
first of all, great resource here. i'm surfing a lot on hydrogenaudio

now... i've tested some components like playlist-tree, playlist-bind, etc.
but i can't do what i want with them or can't figure out how.

what i need is a component wich let me do the following:

imagine we have the playlist "new stuff".
now i wish to bind the folder N:/music/ to it.
but it should only load/display files where the changing date is not
greater than 7 days.

hope you understand my english

edit: finnaly i've found the var  %lastmodified%. but i still don't know how i can compare the current date (where's the var for this?) with the %lastmodified%.


read you,
arT2

 

looking for component to bind files by date to a playlist

Reply #1
okay it was a pain in the ass but i've got it  it's not perfect, but useful for me.

screen:


needed:
foo_cwb_hooks + album list panel

script:
Code: [Select]
$ifgreater($cwb_datediff(%cwb_systemdatetime%,%lastmodified%),7,,$cwb_datediff(%cwb_systemdatetime%,%lastmodified%))