3d6a2008bb
FastAPI service that syncs content ratings on Plex libraries, with MCP tool server, scheduled sync, and Podman Quadlet deployment.
16 lines
467 B
Python
16 lines
467 B
Python
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
plex_baseurl: str = "http://host.containers.internal:32400"
|
|
plex_token: str = ""
|
|
plex_username: str = ""
|
|
plex_password: str = ""
|
|
log_level: str = "INFO"
|
|
trigger_rate_limit: int = 60
|
|
schedule_interval_minutes: int = 5
|
|
target_content_rating: str = "2"
|
|
target_library: str = "BorneVideo"
|
|
|
|
model_config = {"env_file": ".env", "env_file_encoding": "utf-8"}
|