mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-04 04:27:42 +03:00
Fix return type in get_latest_segment_datetime
Returns a datetime object, not an integer.
This commit is contained in:
parent
20791c6b0f
commit
e0a52770fb
@ -371,7 +371,9 @@ class CameraWatchdog(threading.Thread):
|
|||||||
p["logpipe"].close()
|
p["logpipe"].close()
|
||||||
self.ffmpeg_other_processes.clear()
|
self.ffmpeg_other_processes.clear()
|
||||||
|
|
||||||
def get_latest_segment_datetime(self, latest_segment: datetime.datetime) -> int:
|
def get_latest_segment_datetime(
|
||||||
|
self, latest_segment: datetime.datetime
|
||||||
|
) -> datetime.datetime:
|
||||||
"""Checks if ffmpeg is still writing recording segments to cache."""
|
"""Checks if ffmpeg is still writing recording segments to cache."""
|
||||||
cache_files = sorted(
|
cache_files = sorted(
|
||||||
[
|
[
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user