Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Now Playing is expires after a time (10 minutes?) and is not sent again #26

Open
rzumer opened this issue Dec 8, 2020 · 2 comments
Open

Comments

@rzumer
Copy link
Contributor

rzumer commented Dec 8, 2020

When listening to long tracks the Now Playing status is lost after a set amount of time, probably a timeout on last.fm's end, somewhere around the 10 minute mark as far as I can tell. foo_scrobble should send the status again at regular intervals to maintain the status in that case as long as the track is still playing.

@rzumer
Copy link
Contributor Author

rzumer commented Dec 9, 2020

I played a long track today that did not clear its now playing state, so it is possible it is dependent on the track somehow... the only difference that I can think of is that the track that stopped broadcasting its "now playing" status was redirected to a different name (and my account has redirects disabled).

@gix
Copy link
Owner

gix commented Dec 9, 2020

Probably something on last.fm's side. There isn't really any sophisticated logic in foo_scrobble for the notification. Once a new track starts playing (new file, or new dynamic track info, both as reported by foobar) and 3 seconds of listen time have accumulated, the notification is sent once. The sent state is cleared when another track starts or playback is stopped.

Before anything, this should be investigated further. There is also an optional duration value for the notification which is currently not sent to last.fm. Maybe this can help with longer tracks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants