diff --git a/src/worker/job_worker.rs b/src/worker/job_worker.rs index c3ed2f07..1a4c3076 100644 --- a/src/worker/job_worker.rs +++ b/src/worker/job_worker.rs @@ -5728,6 +5728,11 @@ async fn process_job(&self, job: crate::core::db::MonitorJob) -> Result<()> { if keep_set.contains(&i) { new_scenes.push(scene); new_extracted.push(path); + } else { + // Remove the now-orphaned scene jpg so disk matches scenes.json. + if let Err(e) = std::fs::remove_file(&path) { + debug!("[DEDUP] failed to remove orphan scene jpg {:?}: {}", path, e); + } } } profile.scenes = new_scenes;