浏览代码

allow dash in camera name

Blake Blackshear 3 年之前
父节点
当前提交
cf6e66c453
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      frigate/config.py

+ 1 - 1
frigate/config.py

@@ -476,7 +476,7 @@ class CameraLiveConfig(FrigateBaseModel):
 
 
 class CameraConfig(FrigateBaseModel):
-    name: Optional[str] = Field(title="Camera name.", regex="^[a-zA-Z0-9_]+$")
+    name: Optional[str] = Field(title="Camera name.", regex="^[a-zA-Z0-9_-]+$")
     ffmpeg: CameraFfmpegConfig = Field(title="FFmpeg configuration for the camera.")
     best_image_timeout: int = Field(
         default=60,