mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-02 17:12:16 +03:00
Various Fixes (#22594)
* Fix handling of preview * Fix schema cleaning * Cleanup
This commit is contained in:
@@ -266,8 +266,8 @@ class PreviewRecorder:
|
||||
.timestamp()
|
||||
)
|
||||
|
||||
file_start = f"preview_{config.name}"
|
||||
start_file = f"{file_start}-{start_ts}.webp"
|
||||
file_start = f"preview_{config.name}-"
|
||||
start_file = f"{file_start}{start_ts}.webp"
|
||||
|
||||
for file in sorted(os.listdir(os.path.join(CACHE_DIR, FOLDER_PREVIEW_FRAMES))):
|
||||
if not file.startswith(file_start):
|
||||
|
||||
Reference in New Issue
Block a user