Fixed looping issues and tied it to hotcue system

This commit is contained in:
Ben committed 2026-07-04 20:02:32 +02:00
1 parent 9dc020140a
commit fdcae5e0f5
6 files changed
+119 -37

No files matched your search

+3 -1
View File
@@ -384,7 +384,9 @@ def _sync_cue_edit(track_id: str) -> TrackCues:
def create_hotcue(body: SetHotcue) -> TrackCues:
"""Create (or reposition + retype) the hotcue in a slot at a position."""
try:
require_store().set_hotcue(body.track_id, body.slot, body.start, body.type)
require_store().set_hotcue(
body.track_id, body.slot, body.start, body.type, body.length
)
except PlaylistError as ex:
raise HTTPException(400, str(ex))
return _sync_cue_edit(body.track_id)