Fix perview serialization (#12597)

This commit is contained in:
Nicolas Mowen 2024-07-24 11:29:51 -06:00 committed by GitHub
parent 5c15659a34
commit b4db07d7a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -129,12 +129,12 @@ class FFMpegConverter(threading.Thread):
self.requestor.send_data(
INSERT_PREVIEW,
{
Previews.id: f"{self.config.name}_{end}",
Previews.camera: self.config.name,
Previews.path: self.path,
Previews.start_time: start,
Previews.end_time: end,
Previews.duration: end - start,
Previews.id.name: f"{self.config.name}_{end}",
Previews.camera.name: self.config.name,
Previews.path.name: self.path,
Previews.start_time.name: start,
Previews.end_time.name: end,
Previews.duration.name: end - start,
},
)
else: