新增hls root path参数

This commit is contained in:
zqc
2026-02-28 12:10:52 +08:00
parent ffaacc0624
commit e1c1d343b1
3 changed files with 39 additions and 24 deletions

View File

@@ -1,9 +1,11 @@
import yaml
from utils.logger import get_logger
logger = get_logger(__name__)
ALERT_PUSH_URL = ""
HLS_ROOT_PATH = ""
def init_config(config_path: str = "config.yaml"):
@@ -20,6 +22,7 @@ def init_config(config_path: str = "config.yaml"):
cfg = yaml.safe_load(f)
ALERT_PUSH_URL = cfg.get("alert_push_url", "")
HLS_ROOT_PATH = cfg.get("hls_root_path", "")
logger.info(f"[INFO] Config initialized from {config_path}, alert_push_url={ALERT_PUSH_URL}")
except Exception as e: