feat: download accepted recommendations and track longform progress
CI / chart (push) Successful in 4s
CI / chart-push (push) Successful in 4s
CI / test (push) Successful in 2m5s
CI / image (push) Successful in 3m14s

Accepted recommendations without a library match now enter a download queue.
A worker downloads the MP3 with yt-dlp into "<music>/AudioManager Imports",
runs a scan, matches the new song, links it to the recommendation and adds it
as a seed. Jobs retry three times and expose queued/downloading/done/failed
state (plus the error) on the recommendation DTO, so clients can show progress
and retry. Downloads can be disabled and the target folder chosen.

Long-form gets resume points: GET/PUT /longform/progress, scoped to longform
folders and to the owner, with automatic completion detection. Longform stays
excluded from moods and radio.

The chart mounts the music hostPath writable for imports and passes the new
DOWNLOAD_* settings; version 0.2.3.
This commit is contained in:
TapTap committed 2026-11-15 13:26:22 +00:00
1 parent 51d1b20bf6
commit a5af1ee83f
18 files changed
+996 -9

No files matched your search

+1 -1
View File
@@ -2,5 +2,5 @@ apiVersion: v2
name: audiomanager
description: Mood-first self-hosted music server
type: application
version: 0.2.2
version: 0.2.3
appVersion: "0.1.0"
@@ -44,6 +44,14 @@ spec:
value: ffmpeg
- name: YTDLP_PATH
value: yt-dlp
- name: DOWNLOADS_ENABLED
value: {{ .Values.downloads.enabled | quote }}
- name: DOWNLOAD_DIR
value: /data/downloads
{{- with .Values.downloads.folderId }}
- name: DOWNLOAD_FOLDER_ID
value: {{ . | quote }}
{{- end }}
{{- with .Values.env }}
{{- toYaml . | nindent 12 }}
{{- end }}
@@ -79,7 +87,6 @@ spec:
mountPath: /tmp
- name: music
mountPath: {{ .Values.media.music.mountPath }}
readOnly: true
- name: longform
mountPath: {{ .Values.media.longform.mountPath }}
readOnly: true
+9 -1
View File
@@ -41,7 +41,15 @@ data:
accessModes:
- ReadWriteOnce
# hostPath mounts shared by every schedulable node. Read-only in the pod.
# Automatic downloads for accepted recommendations. Files land in
# "<music>/AudioManager Imports" and are picked up by a scan, so the music
# hostPath must be writable by the pod.
downloads:
enabled: true
# Empty uses the first music folder visible to the user.
folderId: null
# hostPath mounts shared by every schedulable node.
media:
music:
hostPath: /mnt/media/music