forked from Github/frigate
Improve thumbnails and live player (#9828)
* Don't show gif until event is over and fix aspect * Be more efficient about updating events * ensure previews are sorted * Don't show live view when window is not visible * Move debug camera to separate view * Improve jpg loading * Ensure still is updated on player live finish * Don't reload when window not visible * Only disconnect instead of full remove * Use start time instead of event over to determine gif
This commit is contained in:
@@ -2294,9 +2294,9 @@ def preview_thumbnail(camera_name, frame_time):
|
||||
file_check = f"{file_start}-{frame_time}.jpg"
|
||||
selected_preview = None
|
||||
|
||||
for file in os.listdir(preview_dir):
|
||||
for file in sorted(os.listdir(preview_dir)):
|
||||
if file.startswith(file_start):
|
||||
if file < file_check:
|
||||
if file > file_check:
|
||||
selected_preview = file
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user