mirror of
https://github.com/rommapp/romm.git
synced 2026-12-05 05:07:31 +01:00
The frontend rewrites every cover URL to .webp as soon as the heartbeat reports ENABLE_SCHEDULED_CONVERT_IMAGES_TO_WEBP, but existing covers have no .webp sibling until the scheduled cron eventually runs (the inline conversion only covers art fetched after enabling). This produced 404s on all existing covers until the cron fired. Enqueue a one-off backfill run of the conversion task on startup when the feature is enabled, mirroring the recompute-save-hashes pattern. A fixed job_id + Job.exists guard prevents duplicate jobs across restarts, and the task already skips covers that have a .webp sibling so repeated runs are cheap. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>