mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Compare timestamps instead of datetimes when exporting (#11790)
This commit is contained in:
parent
926d394b2f
commit
5b42c91a91
@ -72,10 +72,11 @@ class RecordingExporter(threading.Thread):
|
|||||||
def save_thumbnail(self, id: str) -> str:
|
def save_thumbnail(self, id: str) -> str:
|
||||||
thumb_path = os.path.join(CLIPS_DIR, f"export/{id}.webp")
|
thumb_path = os.path.join(CLIPS_DIR, f"export/{id}.webp")
|
||||||
|
|
||||||
if datetime.datetime.fromtimestamp(
|
if (
|
||||||
self.start_time
|
self.start_time
|
||||||
) < datetime.datetime.now().astimezone(datetime.timezone.utc).replace(
|
< datetime.datetime.now(datetime.timezone.utc)
|
||||||
minute=0, second=0, microsecond=0
|
.replace(minute=0, second=0, microsecond=0)
|
||||||
|
.timestamp()
|
||||||
):
|
):
|
||||||
# has preview mp4
|
# has preview mp4
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user