feat(wizard): optional AcoustID key step for metadata enrichment
Adds a wizard step (after the ML step) that prompts for an AcoustID API key. Left blank, enrichment runs on embedded tags only; with a key the backend also identifies untagged files by audio fingerprint (§1D). The key is appended to .env.deploy and reaches both api and worker via env_file. en/ru strings included. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -37,6 +37,7 @@ CFG_HTTP_PORT="8080"; CFG_API_PORT="8080"; CFG_WEBUI_PORT="3000"
|
||||
CFG_PUBLIC_API_BASE_URL="/api/v1"
|
||||
CFG_ADMIN_CREATE="no"; CFG_ADMIN_USER=""; CFG_ADMIN_PASS=""
|
||||
CFG_ML_URL=""
|
||||
CFG_ACOUSTID_KEY=""
|
||||
CFG_JWT_SECRET=""
|
||||
|
||||
# ==========================================================================
|
||||
@@ -185,6 +186,12 @@ step_ml() {
|
||||
ui_input "$(t ml_prompt)" "" ""; CFG_ML_URL="$UI_VALUE"
|
||||
}
|
||||
|
||||
step_enrichment() {
|
||||
ui_title "$(t step_enrichment)"
|
||||
ui_dim "$(t enrichment_note)"
|
||||
ui_input "$(t acoustid_prompt)" "" ""; CFG_ACOUSTID_KEY="$UI_VALUE"
|
||||
}
|
||||
|
||||
access_url() {
|
||||
if [[ "$CFG_WEBUI" == "yes" ]]; then
|
||||
if [[ "$CFG_PROXY" == "yes" ]]; then
|
||||
@@ -236,6 +243,7 @@ run_wizard() {
|
||||
step_network
|
||||
step_admin
|
||||
step_ml
|
||||
step_enrichment
|
||||
|
||||
gen_hex 32; CFG_JWT_SECRET="$SECRET"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user