load stream subtyper

upd env var prefix
This commit is contained in:
onyx-and-iris 2025-04-26 15:53:05 +01:00
parent 63f2ab9d01
commit 5ca61d04c7
2 changed files with 6 additions and 4 deletions

View File

@ -50,9 +50,9 @@ Store and load environment variables from:
- `user home directory / .config / obsws-cli / obsws.env`
```env
OBSWS_HOST=localhost
OBSWS_PORT=4455
OBSWS_PASSWORD=<websocket password>
OBS_HOST=localhost
OBS_PORT=4455
OBS_PASSWORD=<websocket password>
```
Flags can be used to override environment variables.

View File

@ -17,6 +17,7 @@ from . import (
scene,
scenecollection,
sceneitem,
stream,
studiomode,
virtualcam,
)
@ -32,7 +33,7 @@ class Settings(BaseSettings):
Path.home() / '.config' / 'obsws-cli' / 'obsws.env',
),
env_file_encoding='utf-8',
env_prefix='OBSWS_',
env_prefix='OBS_',
)
HOST: str = 'localhost'
@ -51,6 +52,7 @@ for module in (
scene,
scenecollection,
sceneitem,
stream,
studiomode,
virtualcam,
):