Closed ben-xo closed 6 years ago
Scrobble logic modified, scrobbles now occur immediately when a connection is available or cached if not, according to the track length / 2 or a minimum of 5 minutes is reached.
iTunes doesn't have 'Pause' in it's playstate model. It's either, playing, stopped or winding back/forwards. However, we're now treating stopped as paused.
So this doesn't yet work how I was expecting
It still sends the scrobble (and does the popup) immediately after the "scrobble point", not at the end of the song.
I think the fix for this is to only try to flush the scrobble queue after the song has changed / ended / etc. (Including shutdown or expiry of 5 minutes).
(If that flush fails, because you're offline, then of course flush whenever you get a chance).
Noted. Will modify accordingly.
The scrobble at end of track, was covered by an earlier check-in.
I'd like the scrobble logic to work like this:
Flushing the cache is then done at other convenient opportunities: