sonda/cmd/sondad
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi 0e121ead8e feat(images): album covers from my own files
- GET and HEAD /albums/{id}/cover serve a JPEG made from the picture embedded in
  the album's files, or else a cover, folder, front, album or albumart image
  (jpg, jpeg, png) in the album's folder. ?size=small (300 px) or large (1000 px).
  The token can be in the query, so an <img> element can use it.
- Built the first time it is asked for, scaled, and kept in storage.data_dir
  (SONDA_DATA_DIR, default "data"); an album with no cover is remembered for a day.
  A new or changed file of the album, or a full rescan, clears the record.
- Nothing is sent anywhere. Pictures are untrusted: files are opened inside the
  library only (links are not followed), over 20 MB or 16 million pixels are
  ignored, and what is served is always a JPEG made here. Stored files are 0600.
- images table (migration 0013, SQLite and PostgreSQL).
- Spec, contract test, README and example config updated.

Closes #37
2026-11-11 20:52:36 +01:00
..
logger.go feat: add sondad server with config, storage, auth and listening API 2026-11-11 12:06:15 +01:00
main.go feat(images): album covers from my own files 2026-11-11 20:52:36 +01:00
scan.go feat(discovery): remove provider data, genres from my files, full rescans 2026-11-11 17:27:29 +01:00