feat(scrobble): submit final scrobble on playback finish with listen threshold
This commit is contained in:
@@ -586,7 +586,9 @@ async def scrobble(song_id: str, *, submission: bool=True, timestamp: int=None)
|
||||
"submission": "true" if submission else "false",
|
||||
}
|
||||
if timestamp is not None:
|
||||
scrobble_params["time"] = str(timestamp)
|
||||
# Subsonic expects epoch time in milliseconds
|
||||
time_ms = int(timestamp) * 1000
|
||||
scrobble_params["time"] = str(time_ms)
|
||||
|
||||
params = SUBSONIC_REQUEST_PARAMS | scrobble_params
|
||||
|
||||
|
||||
Reference in New Issue
Block a user