21
3rd Party Plugins - (fb2k) / Re: foo_enhanced_playcount - Record all song plays and Last.fm scrobbles
Last post by MordredKLB -I re-installed the component today hoping that the CPU use may no longer be a concern (EDIT: sadly it still is, manual pulling triggered it), however automatic scrobble pulling is broken. When I press "reset" it fetches the date of the day I removed the plugin (2022-10-29), then if I close and re-open its preferences, the next historical pull date is mentioned as being 1970-01-01. Manual pulling of scrobbles still works, but of course I've listened to quite a lot of music in the interim... how can I fix this?What version of foobar are you using?
As you might have noticed this component hasn't been updated in 4 years or so because it was basically working flawlessly AFAIK (things might have changed in 2.0, but I had trouble when my foo_playcount stats didn't migrate over, so I gave up).
The component checks for scrobbles in two directions, starting with the last scrobble it knows about. It checks forward in time to get all scrobbles since that last scrobble it has recorded this syncs you up with syncing from other devices/foobar instances/or while you had the plugin removed, so that date 2022-10-29 makes sense.
Then it checks backward from that date 1000 scrobbles at a time (and rarely) to get all your historical scrobbles. Once it finally reaches the last scrobble in last.fm, it starts back over at the last scrobble it knows about, just in case some were missed in the interim. 1970-01-01 is the unix epoch, so presumably it thinks the last scrobble time is zero? I'm wondering if there's an issue writing the cfg file for the component (or reading from it?). Again, this may be all related to 2.0, but I haven't tried it. I'll give it a shot soon though.