1
0
mirror of https://github.com/hanxi/xiaomusic.git synced 2025-12-14 16:08:14 +08:00

add XIAOMUSIC_VERBOSE env

This commit is contained in:
涵曦
2024-06-14 14:10:56 +00:00
parent 88f0ce7e51
commit 2c35c6cfd6

View File

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