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

Fix: Add logging around Subsonic scrobble calls #1797

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

khers
Copy link
Contributor

@khers khers commented Nov 29, 2024

There is some disagreement about if the scrobble calls are actually occuring for some providers. Add logging around these calls to make sure the user knows they happened.

There is some disagreement about if the scrobble calls are actually
occuring for some providers. Add logging around these calls to make sure
the user knows they happened.

Signed-off-by: Eric B Munson <[email protected]>
await self._run_async(self._conn.scrobble, sid=item_id, submission=False)

async def on_streamed(self, streamdetails: StreamDetails, seconds_streamed: int) -> None:
"""Handle callback when an item completed streaming."""
self.logger.debug("on_streamed called for %s", streamdetails.item_id)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note that this will be called when the buffer is filled - its not perse the actual playback time, especially not for players that buffer a lot of data ahead such as sonos.

If you want actual played seconds we also have an event called by the queue manager.

@marcelveldt marcelveldt merged commit c33e766 into music-assistant:dev Dec 16, 2024
3 checks passed
@marcelveldt marcelveldt changed the title Subsonic: Add logging around scrobble calls Fix: Add logging around Subsonic scrobble calls Dec 16, 2024
@khers khers deleted the logging branch December 16, 2024 17:28
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

Successfully merging this pull request may close these issues.

2 participants