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

46 lines
758 B
Python
Raw Normal View History

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