diff --git a/frigate/http.py b/frigate/http.py index 69085cf06..06fa675c3 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -9,8 +9,10 @@ import subprocess as sp import pytz import time import traceback + from functools import reduce from pathlib import Path +from tzlocal import get_localzone_name from urllib.parse import unquote import cv2 @@ -1022,6 +1024,11 @@ def vod_ts(camera_name, start_ts, end_ts): ) +@bp.route("/vod////") +def vod_hour_no_timezone(year_month, day, hour, camera_name): + return vod_hour(year_month, day, hour, camera_name, get_localzone_name().replace("/", "_")) + + # TODO make this nicer when vod module is removed @bp.route("/vod/////") def vod_hour(year_month, day, hour, camera_name, tz_name): diff --git a/requirements-wheels.txt b/requirements-wheels.txt index 7448b8665..930ab9e47 100644 --- a/requirements-wheels.txt +++ b/requirements-wheels.txt @@ -12,6 +12,7 @@ psutil == 5.9.* pydantic == 1.10.* PyYAML == 6.0 pytz == 2022.6 +tzlocal == 4.2 types-PyYAML == 6.0.* requests == 2.28.* types-requests == 2.28.*