Skip to content

Commit

Permalink
fetch recordings until end of hour, not top of next hour
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterjm authored and blakeblackshear committed Jun 10, 2021
1 parent eb3f50c commit 098e293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frigate/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ def recordings(camera_name):
@bp.route("/vod/<year_month>/<day>/<hour>/<camera>")
def vod(year_month, day, hour, camera):
start_date = datetime.strptime(f"{year_month}-{day} {hour}", "%Y-%m-%d %H")
end_date = start_date + timedelta(hours=1)
end_date = start_date + timedelta(hours=1) - timedelta(milliseconds=1)
start_ts = start_date.timestamp()
end_ts = end_date.timestamp()

Expand Down

0 comments on commit 098e293

Please sign in to comment.