Ny live
This commit is contained in:
@@ -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)
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user