feat(scrobble): include timestamp for now-playing per Subsonic spec

This commit is contained in:
joelilas
2026-01-26 19:31:19 +01:00
parent 5ed89f3fc5
commit 2d19d17d8e

View File

@@ -186,7 +186,7 @@ class Player():
logger.info(f"Started playing: {song.title} by {song.artist}")
# Fire-and-forget scrobble (now-playing ping with submission=False)
try:
asyncio.create_task(scrobble(song.song_id, submission=False))
asyncio.create_task(scrobble(song.song_id, submission=False, timestamp=int(time.time())))
except Exception as e:
logger.error(f"Failed to schedule scrobble for {song.title}: {e}")
return # Success, exit the function