Skip to content

Fix: Add logging around Subsonic scrobble calls#1797

Merged
marcelveldt merged 1 commit intomusic-assistant:devfrom
khers:logging
Dec 16, 2024
Merged

Fix: Add logging around Subsonic scrobble calls#1797
marcelveldt merged 1 commit intomusic-assistant:devfrom
khers:logging

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]>

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
@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