瀏覽代碼

fetch recordings until end of hour, not top of next hour

Jason Hunter 3 年之前
父節點
當前提交
098e293c82
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      frigate/http.py

+ 1 - 1
frigate/http.py

@@ -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()