mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 20:25:26 +03:00
fix gif logic
This commit is contained in:
parent
acba7a1be9
commit
310c3d2b85
@ -616,8 +616,8 @@ def event_preview(id: str, max_cache_age=2592000):
|
||||
)
|
||||
|
||||
start_ts = event.start_time
|
||||
end_ts = (
|
||||
start_ts + min(event.end_time - event.start_time, 20) if event.end_time else 20
|
||||
end_ts = start_ts + (
|
||||
min(event.end_time - event.start_time, 20) if event.end_time else 20
|
||||
)
|
||||
|
||||
if datetime.fromtimestamp(event.start_time) < datetime.now().replace(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user