Help - Search - Members - Calendar
Full Version: auto-tagging / skip functions
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
mausemecker
Hello. smile.gif

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))
)


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
)


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
)


Does anyone has an idea about this?
odyssey
It's a nice idea. It's not so straightforward to implement functions like this with the current SDK.

Personally I really hate foo_skip, because it needs to start the track before validating if it should be skipped or not (defeats crossfading plugins and sometimes it will begin playing the skipped track before it gets to skip).

There is a plugin that removes a track from the playlist after it has been played. In addition you could create autoplaylists or queries with playlisttree to generate new playlists without these files. smile.gif
kanak
One idea is to use the new album list with the "filter" option so that it filters out any songs that have been played recently. I don't the filter option persists across sessions- so you'd have to keep foobar open all the time.
mausemecker
Thanks for the quick replies. smile.gif Both ideas work with the principle of removing songs from a list - which is not what i'm aiming for.
I often do want to hear the songs that have been played today - new songs for example. Therefore i am looking for an option which allows me to leave the song in the playlist (and click on it manually) but when in shuffle or default mode, it should take the other songs.

But i still think the code from above (with foo_skip) should actually work. :/
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-2008 Invision Power Services, Inc.