Don't change duration

This commit is contained in:
Nicolas Mowen 2025-05-14 15:09:18 -06:00
parent 0640460af2
commit 077759da2f

View File

@ -672,8 +672,6 @@ def vod_ts(camera_name: str, start_ts: float, end_ts: float):
# adjust start offset if start_ts is after recording.start_time # adjust start offset if start_ts is after recording.start_time
if start_ts > recording.start_time: if start_ts > recording.start_time:
clip_from = int((start_ts - recording.start_time) * 1000) clip_from = int((start_ts - recording.start_time) * 1000)
# adjust duration to account for the trimmed start
duration -= clip_from
# adjust end if recording.end_time is after end_ts # adjust end if recording.end_time is after end_ts
if recording.end_time > end_ts: if recording.end_time > end_ts: