sonda/internal/images
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi 345ad8eecb fix(images): a refresh never wipes covers, the job sees outages and starts cleanly
- A refresh (or any rebuild) while the Cover Art Archive is switched off, but its data
  not taken back, no longer turns the covers it gave into "no cover" and deletes their
  files: the stored cover is kept and its date renewed, so the files are not searched
  again at every request.
- When none of an album's files and folders can be looked at (an unmounted disk, a
  permission), that is ErrFilesUnreadable (503 files_unreadable), not "no picture": nothing
  is remembered, nothing built is touched, the archive is not asked, and the job counts it
  as a failure and gives up after five. A link that leaves the library is still just refused.
- The job calls the build for every album that is not good yet and does not serve an older
  cover on an outage, so a dead provider shows as failures and trips the limit instead of
  being reported as covers from the archive.
- Start marks the job as running before counting the albums and does not hold the lock
  meanwhile; a stop that comes back as a plain driver error is not a failure; a job that
  finished by itself is never marked stopped.
- Spec and README say so; the tests cover each case, including a list that fails midway.
2026-11-12 09:43:51 +01:00
..
album_remote_test.go fix(images): purge removes every archive cover, the id of an emptied album moves on 2026-11-12 09:21:11 +01:00
artist.go fix(images): a refresh never wipes covers, the job sees outages and starts cleanly 2026-11-12 09:43:51 +01:00
artist_test.go feat(images): album covers from the Cover Art Archive 2026-11-12 09:09:31 +01:00
commons_source.go fix(images): outages are 502, purges are not undone, bad pictures are not outages 2026-11-11 22:12:49 +01:00
commons_source_test.go fix(images): outages are 502, purges are not undone, bad pictures are not outages 2026-11-11 22:12:49 +01:00
coverart_source.go feat(images): album covers from the Cover Art Archive 2026-11-12 09:09:31 +01:00
coverart_source_test.go feat(images): album covers from the Cover Art Archive 2026-11-12 09:09:31 +01:00
fifo_unix_test.go fix(images): limit parallel builds, no stale saves, safer files 2026-11-11 21:03:26 +01:00
job.go fix(images): a refresh never wipes covers, the job sees outages and starts cleanly 2026-11-12 09:43:51 +01:00
job_test.go fix(images): a refresh never wipes covers, the job sees outages and starts cleanly 2026-11-12 09:43:51 +01:00
nonblock_other.go feat(images): album covers from my own files 2026-11-11 20:52:36 +01:00
nonblock_unix.go feat(images): album covers from my own files 2026-11-11 20:52:36 +01:00
process.go fix(images): outages are 502, purges are not undone, bad pictures are not outages 2026-11-11 22:12:49 +01:00
process_test.go feat(images): album covers from my own files 2026-11-11 20:52:36 +01:00
service.go fix(images): a refresh never wipes covers, the job sees outages and starts cleanly 2026-11-12 09:43:51 +01:00
service_test.go fix(images): limit parallel builds, no stale saves, safer files 2026-11-11 21:03:26 +01:00