I would like to grey out and skip tracks that have already been played today or yesterday. I already managed to grey out tracks that played today with this code: (using Colums UI)
CODE
$if(%last_played%,
$ifequal($cwb_datediff(%last_played%,%cwb_systemdate%),0,
$set_style(text,$rgb(200,200,200)),
$set_style(text,$rgb(0,0,0))
),$set_style(text,$rgb(0,0,0))
)
$ifequal($cwb_datediff(%last_played%,%cwb_systemdate%),0,
$set_style(text,$rgb(200,200,200)),
$set_style(text,$rgb(0,0,0))
),$set_style(text,$rgb(0,0,0))
)
now I'd like to do about the same with foo_skip.
but the following code:
CODE
$if(%last_played%,
$ifequal($cwb_datediff(%last_played%,%cwb_systemdate%),0,
1,
0
),0
)
$ifequal($cwb_datediff(%last_played%,%cwb_systemdate%),0,
1,
0
),0
)
doesn't work as I expected.
the second idea would be to tag files played today and yesterday with %skip%. Naturally, if I did this manually, I would never be finished.
However, I don't see a way to define a function like this and run it automatically on every track:
CODE
$if(%last_played%,
$ifequal($cwb_datediff(%last_played%,%cwb_systemdate%),1,
TAG:SET:SKIP:1,
TAG:SET:SKIP:0
),TAG:SET:SKIP:0
)
$ifequal($cwb_datediff(%last_played%,%cwb_systemdate%),1,
TAG:SET:SKIP:1,
TAG:SET:SKIP:0
),TAG:SET:SKIP:0
)
Does anyone has an idea about this?