some feat
This commit is contained in:
parent
90243b395a
commit
7d158ff40e
@ -56,7 +56,7 @@ class Config:
|
|||||||
music_path: str = os.getenv("XIAOMUSIC_MUSIC_PATH", "music")
|
music_path: str = os.getenv("XIAOMUSIC_MUSIC_PATH", "music")
|
||||||
hostname: str = os.getenv("XIAOMUSIC_HOSTNAME", "192.168.2.5")
|
hostname: str = os.getenv("XIAOMUSIC_HOSTNAME", "192.168.2.5")
|
||||||
port: int = int(os.getenv("XIAOMUSIC_PORT", "8090"))
|
port: int = int(os.getenv("XIAOMUSIC_PORT", "8090"))
|
||||||
proxy: str = os.getenv("XIAOMUSIC_PROXY", None)
|
proxy: str | None = os.getenv("XIAOMUSIC_PROXY", None)
|
||||||
|
|
||||||
def __post_init__(self) -> None:
|
def __post_init__(self) -> None:
|
||||||
if self.proxy:
|
if self.proxy:
|
||||||
|
Loading…
Reference in New Issue
Block a user