jellyfin/src/config.py

14 lines
288 B
Python
Raw Normal View History

2023-04-05 16:31:14 +00:00
"""handle config file"""
import json
2023-04-06 04:58:04 +00:00
from src.static_types import ConfigType
2023-04-05 16:31:14 +00:00
2023-04-06 04:58:04 +00:00
def get_config() -> ConfigType:
2023-04-05 16:31:14 +00:00
"""get connection config"""
with open("config.json", "r", encoding="utf-8") as f:
2023-04-06 04:58:04 +00:00
config_content: ConfigType = json.loads(f.read())
2023-04-05 16:31:14 +00:00
return config_content