feat(scrobble): include timestamp for now-playing per Subsonic spec
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user