Add ability to rename exports (#10791)

* Add ability to rename exports

* Address feedback
This commit is contained in:
Nicolas Mowen
2024-04-03 08:02:07 -06:00
committed by GitHub
parent 15dcf1fcc8
commit 476a900708
3 changed files with 156 additions and 59 deletions

View File

@@ -61,7 +61,7 @@ class RecordingExporter(threading.Thread):
)
file_name = (
self.user_provided_name
or f"{self.camera}@{self.get_datetime_from_timestamp(self.start_time)}__{self.get_datetime_from_timestamp(self.end_time)}"
or f"{self.camera}_{self.get_datetime_from_timestamp(self.start_time)}__{self.get_datetime_from_timestamp(self.end_time)}"
)
file_path = f"{EXPORT_DIR}/in_progress.{file_name}.mp4"
final_file_path = f"{EXPORT_DIR}/{file_name}.mp4"