mirror of
https://github.com/tubearchivist/jellyfin.git
synced 2024-11-17 01:10:14 +00:00
14 lines
288 B
Python
14 lines
288 B
Python
"""handle config file"""
|
|
|
|
import json
|
|
|
|
from src.static_types import ConfigType
|
|
|
|
|
|
def get_config() -> ConfigType:
|
|
"""get connection config"""
|
|
with open("config.json", "r", encoding="utf-8") as f:
|
|
config_content: ConfigType = json.loads(f.read())
|
|
|
|
return config_content
|