mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-19 11:54:09 +02:00
17 lines
501 B
Python
17 lines
501 B
Python
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class ProwlarrConfig(BaseSettings):
|
|
model_config = SettingsConfigDict(env_prefix="PROWLARR_")
|
|
enabled: bool | None = False
|
|
api_key: str | None = None
|
|
url: str = "http://localhost:9696"
|
|
|
|
|
|
class JackettConfig(BaseSettings):
|
|
model_config = SettingsConfigDict(env_prefix="JACKETT_")
|
|
enabled: bool | None = False
|
|
api_key: str | None = None
|
|
url: str = "http://localhost:9696"
|
|
indexers: list[str] = ["all"]
|