lastfm / lastfm-windows-desktop

Last.fm Desktop app for Windows (3.0)
GNU General Public License v3.0
10 stars 1 forks source link

Scrobble logic changes #7

Closed ben-xo closed 6 years ago

ben-xo commented 6 years ago

I'd like the scrobble logic to work like this:

Flushing the cache is then done at other convenient opportunities:

VorTechS commented 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.

ben-xo commented 6 years ago

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

VorTechS commented 6 years ago

Noted. Will modify accordingly.

VorTechS commented 6 years ago

The scrobble at end of track, was covered by an earlier check-in.