From 8a89a24f256a7d4afa56e7c0fbaa1cb5891af9e1 Mon Sep 17 00:00:00 2001 From: maxDorninger <97409287+maxDorninger@users.noreply.github.com> Date: Thu, 10 Jul 2025 22:33:44 +0200 Subject: [PATCH] remove unused usenet_directory var and fix types of the configs --- media_manager/config.py | 1 - media_manager/indexer/config.py | 8 ++++---- media_manager/notification/config.py | 10 +++++----- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/media_manager/config.py b/media_manager/config.py index 5d3d933..c03a8a3 100644 --- a/media_manager/config.py +++ b/media_manager/config.py @@ -19,7 +19,6 @@ class BasicConfig(BaseSettings): tv_directory: Path = Path(__file__).parent.parent / "data" / "tv" movie_directory: Path = Path(__file__).parent.parent / "data" / "movies" torrent_directory: Path = Path(__file__).parent.parent / "data" / "torrents" - usenet_directory: Path = Path(__file__).parent.parent / "data" / "usenet" FRONTEND_URL: AnyHttpUrl = "http://localhost:3000/" CORS_URLS: list[str] = [] diff --git a/media_manager/indexer/config.py b/media_manager/indexer/config.py index 6eb7748..0e69ade 100644 --- a/media_manager/indexer/config.py +++ b/media_manager/indexer/config.py @@ -2,14 +2,14 @@ from pydantic_settings import BaseSettings class ProwlarrConfig(BaseSettings): - enabled: bool | None = False - api_key: str | None = None + enabled: bool = False + api_key: str = "" url: str = "http://localhost:9696" class JackettConfig(BaseSettings): - enabled: bool | None = False - api_key: str | None = None + enabled: bool = False + api_key: str = "" url: str = "http://localhost:9696" indexers: list[str] = ["all"] diff --git a/media_manager/notification/config.py b/media_manager/notification/config.py index b95c06f..1a9d8aa 100644 --- a/media_manager/notification/config.py +++ b/media_manager/notification/config.py @@ -2,11 +2,11 @@ from pydantic_settings import BaseSettings class EmailConfig(BaseSettings): - smtp_host: str - smtp_port: int - smtp_user: str - smtp_password: str - from_email: str + smtp_host: str = "" + smtp_port: int = 587 + smtp_user: str = "" + smtp_password: str = "" + from_email: str = "" use_tls: bool = False