This commit is contained in:
2026-04-15 16:58:52 +02:00
parent 920cd8222d
commit c5e35f0889
3 changed files with 213 additions and 121 deletions

View File

@@ -1071,6 +1071,7 @@ class MainWindow(QMainWindow):
self._song_ended = False
self._player.play()
self._btn_play.setText("")
self._sync_event_status_to_playlist()
def _stop(self):
# Annuller evt. igangværende demo_then_play
@@ -1301,13 +1302,14 @@ class MainWindow(QMainWindow):
payload = json.dumps({
"songs": [
{
"title": s.get("title", ""),
"artist": s.get("artist", ""),
"status": statuses[i] if i < len(statuses) else "pending",
"position": i + 1,
"dance": s.get("active_dance", "") or
(s.get("dances", [""])[0] if s.get("dances") else ""),
"duration": s.get("duration_sec", 0),
"title": s.get("title", ""),
"artist": s.get("artist", ""),
"status": statuses[i] if i < len(statuses) else "pending",
"position": i + 1,
"dance": s.get("active_dance", "") or
(s.get("dances", [""])[0] if s.get("dances") else ""),
"duration": s.get("duration_sec", 0),
"is_workshop": s.get("is_workshop", False),
}
for i, s in enumerate(songs)
]