discord-rich-presence-plex/models/config.py

43 lines
709 B
Python
Raw Normal View History

2022-05-11 01:53:12 +05:30
from typing import TypedDict
class Logging(TypedDict):
debug: bool
writeToFile: bool
2022-05-11 01:53:12 +05:30
class Posters(TypedDict):
enabled: bool
imgurClientID: str
2024-02-10 12:42:58 +05:30
maxSize: int
class Button(TypedDict):
label: str
url: str
mediaTypes: list[str]
2022-05-11 01:53:12 +05:30
class Display(TypedDict):
duration: bool
genres: bool
album: bool
year: bool
statusIcon: bool
remainingTime: bool
paused: bool
posters: Posters
buttons: list[Button]
2022-05-11 01:53:12 +05:30
class Server(TypedDict, total = False):
2022-05-11 01:53:12 +05:30
name: str
listenForUser: str
2022-05-11 01:53:12 +05:30
blacklistedLibraries: list[str]
whitelistedLibraries: list[str]
ipcPipeNumber: int
2022-05-11 01:53:12 +05:30
class User(TypedDict):
token: str
servers: list[Server]
class Config(TypedDict):
logging: Logging
display: Display
users: list[User]