fix/break-upcoming-songs #1

Merged
gthelding merged 0 commits from fix/break-upcoming-songs into main 2026-07-20 00:10:21 +00:00
gthelding commented 2026-07-19 04:10:35 +00:00 (Migrated from codeberg.org)

Break scripts were built with upcoming_songs = queue[:remaining] — the songs
that play before the break airs. By airtime they'd all played, so every
session-open break introduced the last 3–5 songs as "coming up."

Now teases queue[next_idx+1 : next_idx+4], the songs that actually follow the
break (skipping next_song so it doesn't duplicate the "first track after this
break" line). Bonus: mid-session breaks get a real upcoming list — they
previously never had one, since remaining == 0 when they generate.

No change to next-song re-promotion at serve time.

Break scripts were built with upcoming_songs = queue[:remaining] — the songs that play *before* the break airs. By airtime they'd all played, so every session-open break introduced the last 3–5 songs as "coming up." Now teases queue[next_idx+1 : next_idx+4], the songs that actually follow the break (skipping next_song so it doesn't duplicate the "first track after this break" line). Bonus: mid-session breaks get a real upcoming list — they previously never had one, since remaining == 0 when they generate. No change to next-song re-promotion at serve time.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
thelinuxcast/dj!1
No description provided.