This Foobar2000 component collects and maintains enhanced statistics for played songs; primarily it records the timestamp of every play of a song, and not just the first and last. It will also query last.fm and record play times of every scrobble for a song.
foo_enhanced_playcount provides some additional functionality that foo_playcount does not, but is missing some functionality that foo_playcount has. They work well together, and foo_playcount should NOT be uninstalled when foo_enhanced_playcount is installed.
This component should be installed with foo_playcount and the same time foobar2000 is installed so playback statistics are maintained from the beginning.
New Fields:
- %played_times% – Date formatted list: [
"2012-08-04 15:58:37", "2012-12-10 14:40:46", "2018-01-02 23:38:13"]
- %played_times_js% – JS timestamp list: [
1344117517000, 1355172047000, 1514957893431]
- %played_times_raw% – raw foobar timestamps:
[129885911170000000, 129996456470000000, 131594314930000000] – There’s probably no reason to ever use this.
- %lastfm_played_times% – Date formatted list of scrobbles: [
"2012-08-04 15:58:37", "2012-12-10 14:40:46", "2018-01-02 23:38:13"]
- %lastfm_played_times_js% – JS timestamp list: [
1344117517000, 1355172047000, 1514957893000]
- %lastfm_play_count% – Count of last.fm plays, a la
%play_count%: 5
- %lastfm_added% – Single date: “
2012-08-04 15:58:37“
- %lastfm_first_played% – Always exactly the same as
%lastfm_added%. Use whichever one makes most sense logically
- %lastfm_last_played% – Single date: “
2018-04-04 15:58:37“
- %added_enhanced% – Returns the earliest of
%added% (from foo_playcount) or %lastfm_added%. Single date: “2023-02-04 15:16:17“
- %first_played_enhanced% – Returns the earliest of
%first_played% (from foo_playcount) or %lastfm_added%. Single date: “2023-02-04 15:16:17“
- %last_played_enhanced% – Returns the earliest of
%last_played% (from foo_playcount) or %lastfm_last_played%. Single date: “2023-02-04 15:16:17“
These fields can be exposed via Title Formatting or used in scripts. This component does generate extra data per song played and may not be suitable for installations with limited storage.
www.foobar2000.org/components/view/foo_enhanced_playcount
github.com/kbuffington/foo_enhanced_playcount
wiki.hydrogenaud.io/…/foo_enhanced_playcount