mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-08 12:00:25 -06:00
Adding some logging
This commit is contained in:
@@ -55,13 +55,15 @@ export async function handlePlaybackStarted(sessionId: string, playstateApi: Pla
|
||||
|
||||
export async function handlePlaybackProgressUpdated(sessionId: string, playstateApi: PlaystateApi, track: JellifyTrack, progress: Progress) {
|
||||
|
||||
if (progress.duration - progress.position === 5)
|
||||
if (progress.duration - progress.position === 5) {
|
||||
console.debug("Track finished, scrobbling...");
|
||||
await playstateApi.reportPlaybackStopped({
|
||||
playbackStopInfo: {
|
||||
SessionId: sessionId,
|
||||
ItemId: track.ItemId
|
||||
}
|
||||
})
|
||||
}
|
||||
else
|
||||
return
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user