From: Eric Munson Date: Mon, 16 Dec 2024 10:01:33 +0000 (-0500) Subject: Fix: Add logging around Subsonic scrobble calls (#1797) X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=c33e766ec4062ac9b812d31968fe3393bada4df6;p=music-assistant-server.git Fix: Add logging around Subsonic scrobble calls (#1797) --- diff --git a/music_assistant/providers/opensubsonic/sonic_provider.py b/music_assistant/providers/opensubsonic/sonic_provider.py index 62ef89de..65e49a68 100644 --- a/music_assistant/providers/opensubsonic/sonic_provider.py +++ b/music_assistant/providers/opensubsonic/sonic_provider.py @@ -711,11 +711,14 @@ class OpenSonicProvider(MusicProvider): ) async def _report_playback_started(self, item_id: str) -> None: + self.logger.debug("scrobble for now playing called for %s", item_id) 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) if seconds_streamed >= streamdetails.duration / 2: + self.logger.debug("scrobble for listen count called for %s", streamdetails.item_id) await self._run_async(self._conn.scrobble, sid=streamdetails.item_id, submission=True) async def get_audio_stream(