Misc Improvements (#14076)

* Return ID of export in http response

* Ignore keyboard listener when typing in text field

* Add other keyboard listeners
This commit is contained in:
Nicolas Mowen
2024-09-30 15:55:44 -06:00
committed by GitHub
parent 95d6da3111
commit 94fd75e014
5 changed files with 46 additions and 7 deletions

View File

@@ -1,6 +1,8 @@
"""Export apis."""
import logging
import random
import string
from pathlib import Path
from typing import Optional
@@ -72,8 +74,10 @@ def export_recording(
status_code=400,
)
export_id = f"{camera_name}_{''.join(random.choices(string.ascii_lowercase + string.digits, k=6))}"
exporter = RecordingExporter(
request.app.frigate_config,
export_id,
camera_name,
friendly_name,
existing_image,
@@ -91,6 +95,7 @@ def export_recording(
{
"success": True,
"message": "Starting export of recording.",
"export_id": export_id,
}
),
status_code=200,