palico-bot/test
Shinuwa 793765fb79 Resume interrupted tracks where they stopped
A track cut off without anyone asking (voice connection lost, bot
leaving an empty channel, restart) used to start over from the
beginning; on an hour-long mix, a drop near the end replayed it all.

- The requeued track keeps resumeAt and ffmpeg seeks to it (-ss before
  -i, so it jumps there without decoding the start). It resumes 2 s
  before the cut; a track cut in its first 2 s starts over.
- The player keeps playing without a connection
  (NoSubscriberBehavior.Play), so the position of a voice drop is taken
  when the connection drops, not 5 s later when it is given up.
- The saved queue holds the current position, and it is saved every
  30 s while playing: after a crash the track resumes at most 30 s
  earlier.
- Loop mode replays a resumed track from the beginning; skip and stop
  are unchanged.
- The web page and /queue show "Reprise à 49:15" for such a track, and
  the progress bar counts from the resume point.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 23:11:05 +01:00
..
audio.test.js Resume interrupted tracks where they stopped 2026-12-01 23:11:05 +01:00
auth.test.js Add file headers, tidy the stylesheet and document the conventions 2026-12-01 21:05:59 +01:00
commands.test.js Resume interrupted tracks where they stopped 2026-12-01 23:11:05 +01:00
coverArt.test.js Add library sections and track covers 2026-12-01 21:27:49 +01:00
directMessages.test.js Add file headers, tidy the stylesheet and document the conventions 2026-12-01 21:05:59 +01:00
discordAuth.test.js Add file headers, tidy the stylesheet and document the conventions 2026-12-01 21:05:59 +01:00
downloadAudio.test.js Add file headers, tidy the stylesheet and document the conventions 2026-12-01 21:05:59 +01:00
fileHeaders.test.js Add file headers, tidy the stylesheet and document the conventions 2026-12-01 21:05:59 +01:00
gameServers.test.js Add file headers, tidy the stylesheet and document the conventions 2026-12-01 21:05:59 +01:00
ingest.test.js Add file headers, tidy the stylesheet and document the conventions 2026-12-01 21:05:59 +01:00
invitation.test.js Add file headers, tidy the stylesheet and document the conventions 2026-12-01 21:05:59 +01:00
invitationCommand.test.js Add file headers, tidy the stylesheet and document the conventions 2026-12-01 21:05:59 +01:00
libraryCovers.test.js Add library sections and track covers 2026-12-01 21:27:49 +01:00
librarySections.test.js Add library sections and track covers 2026-12-01 21:27:49 +01:00
musicQueue.test.js Resume interrupted tracks where they stopped 2026-12-01 23:11:05 +01:00
serializers.test.js Add file headers, tidy the stylesheet and document the conventions 2026-12-01 21:05:59 +01:00
storageManager.test.js Add file headers, tidy the stylesheet and document the conventions 2026-12-01 21:05:59 +01:00
webServer.test.js Add file headers, tidy the stylesheet and document the conventions 2026-12-01 21:05:59 +01:00