Files
Lyra/.gitignore
T
Jonathan f74fd5ab88 fix(worker): retrieve Soulseek downloads from slskd's dir into staging
SlskdClient enqueued the transfer and polled to Completed but never moved any
files into `dest` — slskd saves them to its OWN downloads dir, so staging stayed
empty and every Soulseek job failed "incomplete download". Qobuz/YouTube write
straight into staging and were unaffected.

- SlskdClient._retrieve() moves the finished files out of slskd's downloads dir
  into staging after completion, matching tolerantly by basename and preferring
  a parent-folder + size match (slskd's on-disk layout varies by version).
- download() returns the moved count as track_count so the pipeline's
  completeness check reflects what actually landed; raises loudly if nothing was
  found (misconfigured/unmounted downloads dir).
- Downloads dir resolves slskd.downloadsDir Config > SLSKD_DOWNLOADS_ROOT env >
  /slskd-downloads default; docker-compose mounts ${SLSKD_DOWNLOADS_DIR} there.
- .env.example documents SLSKD_DOWNLOADS_DIR; retrieval unit-tested offline.

slskd runs as an external daemon, so the shared dir must be a host path both
slskd and the worker mount — set once Lyra runs on the slskd host. Not yet
verified live end-to-end (no slskd access from this VM).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-14 09:59:16 +02:00

44 lines
398 B
Plaintext

# Dependencies
node_modules/
.pnp
.pnp.js
__pycache__/
*.py[cod]
.venv/
venv/
env/
# Next.js
.next/
out/
build/
dist/
next-env.d.ts
*.tsbuildinfo
# Env & secrets
.env
.env*.local
*.local
# Docker / runtime data
music/
staging/
data/
postgres-data/
slskd-data/
# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# OS / editor
.DS_Store
Thumbs.db
.idea/
.vscode/
*.swp
slskd-downloads/