Added support for coloring Rekordbox hotcues

This commit is contained in:
patben8 committed 2026-10-01 10:54:14 +02:00
1 parent 9be2c029b2
commit 08c53e1150
19 files changed
+337 -45

No files matched your search

+7
View File
@@ -88,6 +88,7 @@ from .schemas import (
SourceCandidate,
SourceStatus,
SetCue,
SetCueColor,
SetCueType,
SetGridLock,
Stats,
@@ -1151,6 +1152,12 @@ def edit_cue_type(body: SetCueType) -> TrackCues:
return require_adapter().set_cue_type(body.track_id, body.slot, body.type)
@app.patch("/api/tracks/cue/color", response_model=TrackCues)
def edit_cue_color(body: SetCueColor) -> TrackCues:
"""Recolour an existing cue from the platform's palette (None = uncoloured)."""
return require_adapter().set_cue_color(body.track_id, body.slot, body.color)
@app.delete("/api/tracks/cue", response_model=TrackCues)
def delete_cue(track_id: str, slot: int) -> TrackCues:
"""Remove the hotcue in a slot."""