feat: Remove load_main_playlist endpoint and implement automatic loading on startup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user