feat: Add 'single' play mode to music player and update related logic
This commit is contained in:
@@ -141,7 +141,7 @@ def set_play_mode():
|
||||
return jsonify({"error": "Mode required"}), 400
|
||||
|
||||
mode = data["mode"]
|
||||
valid_modes = ["continuous", "loop-playlist", "loop-one", "random"]
|
||||
valid_modes = ["continuous", "loop-playlist", "loop-one", "random", "single"]
|
||||
if mode not in valid_modes:
|
||||
return jsonify({"error": f"Mode must be one of: {', '.join(valid_modes)}"}), 400
|
||||
|
||||
|
||||
Reference in New Issue
Block a user