summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-13 20:21:55 +0300
committerPaul Buetow <paul@buetow.org>2026-05-13 20:21:55 +0300
commita98a41786c2c34f6aa990ac3270994759a134a9a (patch)
tree388d9785fcf07df4162e2d9bd190f9d4c4abd2bb
parentf01959bc1157082709de501c902f8af0c263b1a3 (diff)
f3s/beets-art: pipe yes into embedart to bypass interactive prompt
beet embedart (no -f) hard-codes a "Modify artwork for N albums (Y/n)?" confirmation with no flag to suppress it. The CronJob has no stdin, so the command exits with "stdin stream ended while input required" and embedart never runs. Pipe `yes` into the command; safety still relies on embedart.ifempty:no and embedart.compare_threshold:50 from config. Amp-Thread-ID: https://ampcode.com/threads/T-019e223a-d137-705e-879b-84130c0e78ea Co-authored-by: Amp <amp@ampcode.com>
-rw-r--r--f3s/beets-art/helm-chart/templates/cronjob.yaml6
1 files changed, 5 insertions, 1 deletions
diff --git a/f3s/beets-art/helm-chart/templates/cronjob.yaml b/f3s/beets-art/helm-chart/templates/cronjob.yaml
index fb37a7e..55125ff 100644
--- a/f3s/beets-art/helm-chart/templates/cronjob.yaml
+++ b/f3s/beets-art/helm-chart/templates/cronjob.yaml
@@ -83,8 +83,12 @@ spec:
$BEET fetchart || echo "fetchart returned non-zero (continuing)"
# 3. Embed art into audio files where missing.
+ # `beet embedart` (no -f) prompts "Modify artwork for N
+ # albums (Y/n)?" with no flag to bypass; pipe `yes` so
+ # it proceeds non-interactively. embedart still respects
+ # ifempty: no and compare_threshold: 50 from config.
echo "--- embedart (backfill) ---"
- $BEET embedart || echo "embedart returned non-zero (continuing)"
+ yes | $BEET embedart || echo "embedart returned non-zero (continuing)"
echo "=== $(date -u) beets-art sweep finished ==="
volumeMounts: