move clip.mp4 backend to clips folder (#11834)

* move clip.mp4 backend to clips folder

* improve caching

* fix check
This commit is contained in:
Blake Blackshear
2024-06-09 13:45:26 -05:00
committed by GitHub
parent 5f3c35209d
commit 30b86271ea
6 changed files with 23 additions and 12 deletions

View File

@@ -300,7 +300,7 @@ class CameraWatchdog(threading.Thread):
for d in os.listdir(CACHE_DIR)
if os.path.isfile(os.path.join(CACHE_DIR, d))
and d.endswith(".mp4")
and not d.startswith("clip_")
and not d.startswith("preview_")
]
)
newest_segment_time = latest_segment