feat: Remove load_main_playlist endpoint and implement automatic loading on startup

This commit is contained in:
JSC
2025-07-07 21:34:29 +02:00
parent bcd6ca8104
commit 96ab2bdf77
2 changed files with 25 additions and 37 deletions

View File

@@ -219,18 +219,6 @@ def stop_vlc_instance():
return ErrorHandlingService.handle_generic_error(e)
@bp.route("/load-main-playlist", methods=["POST"])
@require_auth
def load_main_playlist():
"""Load the main playlist into the player."""
try:
success = music_player_service.load_main_playlist()
if success:
return jsonify({"message": "Main playlist loaded successfully"}), 200
return jsonify({"error": "Failed to load main playlist"}), 400
except Exception as e:
return ErrorHandlingService.handle_generic_error(e)
@bp.route("/test-emit", methods=["POST"])
@require_auth