A music player that connects to your cloud/distributed storage.
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

Send correct timestamp when scrobbling

+4 -1
+4 -1
src/Javascript/audio-engine.js
··· 361 361 362 362 function audioEndEvent(event) { 363 363 if (this.repeat) { 364 + event.target.startedPlayingAt = Math.floor(Date.now() / 1000) 364 365 if (this.scrobbleTimer) this.scrobbleTimer.stop() 365 366 playAudio(event.target, this.activeQueueItem, this.app) 366 367 } else { ··· 479 480 const scrobbleTimeoutDuration = Math.min(240 + 0.5, lastSetDuration / 1.95) 480 481 const trackId = audio.getAttribute("rel") 481 482 483 + audio.startedPlayingAt = timestamp 484 + 482 485 this.scrobbleTimer = new Timer({ 483 486 onend: _ => this.app.ports.scrobble.send({ 484 487 duration: Math.round(lastSetDuration), 485 - timestamp: timestamp, 488 + timestamp: audio.startedPlayingAt || timestamp, 486 489 trackId: trackId 487 490 }) 488 491 })