feat: organized album directory and persistent /music bind-mount

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jonathan
2026-07-10 23:43:15 +02:00
parent 6cce95cec6
commit 2812695465
5 changed files with 50 additions and 1 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ import psycopg
from lyra_worker.adapters.base import SourceAdapter
from lyra_worker.confidence import score_confidence
from lyra_worker.library import album_dir
from lyra_worker.quality import quality_class
from lyra_worker.ranker import rank_candidates
from lyra_worker.types import Candidate, MBTarget
@@ -150,7 +151,7 @@ def run_pipeline(
# 4. download (fall-through)
_set_state(conn, job_id, "downloading", "download")
by_source = {a.name: a for a in adapters}
dest = f"{dest_root}/{target.artist}/{target.album}"
dest = album_dir(dest_root, target)
winner = None
result = None
for candidate in ranked: