mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 11:12:35 +02:00
The snapshot-diff timelapse detection captured its baseline of existing MP4 files at print completion time inside a background task. Fast- encoding printers could finish writing the timelapse before the baseline was taken, so the new file appeared in the baseline and was never detected as "new" — resulting in no timelapse attached. Move baseline capture to print start time, when the timelapse file cannot possibly exist yet. The baseline is stored in a module-level dict keyed by printer_id and popped at completion time. Falls back to completion-time baseline if the app was restarted mid-print.