Skip to content

Bugfix/queue playback - #39

Merged
bjarneo merged 4 commits into
bjarneo:mainfrom
Maaagggi:bugfix/queue-playback
Mar 5, 2026
Merged

bjarneo merged 4 commits into
bjarneo:mainfrom
Maaagggi:bugfix/queue-playback

Conversation

@Maaagggi

@Maaagggi Maaagggi commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

Bug

When a song finishes and the player goes idle, adding a new track via Find Online (f) or Navidrome queue (a) would replay the old finished song instead of the newly queued one.

Root cause: playCurrentTrack() calls playlist.Current(), which returns the track at the current playlist position — not the queued track. The queue is only consumed by playlist.Next().

Fix

  • model.go (Find Online): Call m.playlist.Next() before m.playCurrentTrack() when the player is idle, so the cursor advances to the freshly queued track.
  • keys.go (Navidrome): Added an idle-player check with the same Next() → playCurrentTrack() pattern, so Navidrome-queued tracks also auto-play immediately.

@bjarneo

bjarneo commented Mar 4, 2026

Copy link
Copy Markdown
Owner

Can you resolve the conflicts?

@bjarneo

bjarneo commented Mar 5, 2026

Copy link
Copy Markdown
Owner

This PR contains lyrics code from your other PR

@Maaagggi
Maaagggi force-pushed the bugfix/queue-playback branch from 575f2f9 to 22089b9 Compare March 5, 2026 08:33
@bjarneo
bjarneo merged commit a306531 into bjarneo:main Mar 5, 2026
lacymorrow pushed a commit to lacymorrow/cliamp that referenced this pull request Mar 7, 2026
* feat: Add built-in internet search streaming via yt-dlp ytsearch1

* feat: add dynamic find online and add-to-queue feature via 'f' key

* fix: play queued track instead of replaying old song when player is idle
hamdouni pushed a commit to CodeCadim/audio that referenced this pull request Nov 26, 2026
* feat: Add built-in internet search streaming via yt-dlp ytsearch1

* feat: add dynamic find online and add-to-queue feature via 'f' key

* fix: play queued track instead of replaying old song when player is idle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants