def player_enable_eq(): if request.form.get('enabled'): enabled = request.form.get('enabled') in ('True', 'true') audit_log.log(get_username(request.form.get('token')), '%s equalizer' % ('Enabled' if enabled else 'Disabled')) return jsonify(player.set_equalizer_enabled(enabled)) return jsonify({'message': 'No equalizer enablement parameter'}), 400
def player_enable_eq(): if request.form.get('enabled'): enabled = request.form.get('enabled') in ('True', 'true') audit_log.log( get_username(request.form.get('token')), '%s equalizer' % ('Enabled' if enabled else 'Disabled') ) return jsonify(player.set_equalizer_enabled(enabled)) return jsonify({'message': 'No equalizer enablement parameter'}), 400
def player_enable_eq(): if request.form.get('enabled'): enabled = request.form.get('enabled') in ('True', 'true') return jsonify(player.set_equalizer_enabled(enabled)) return jsonify({'message': 'No equalizer enablement parameter'}), 400