From 2c35c6cfd6631c8079f77fcd848156b829cf031c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=B5=E6=9B=A6?= Date: Fri, 14 Jun 2024 14:10:56 +0000 Subject: [PATCH] add XIAOMUSIC_VERBOSE env --- xiaomusic/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xiaomusic/config.py b/xiaomusic/config.py index 017febf..bc4c740 100644 --- a/xiaomusic/config.py +++ b/xiaomusic/config.py @@ -85,7 +85,7 @@ class Config: mute_xiaoai: bool = True cookie: str = "" use_command: bool = False - verbose: bool = False + verbose: bool = (os.getenv("XIAOMUSIC_VERBOSE", "").lower() == "true") music_path: str = os.getenv("XIAOMUSIC_MUSIC_PATH", "music") hostname: str = os.getenv("XIAOMUSIC_HOSTNAME", "192.168.2.5") port: int = int(os.getenv("XIAOMUSIC_PORT", "8090"))