mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-17 15:43:28 +02:00
Merge pull request #401 from maxdorninger/fix-env-variables
Fix download clients config being read from env variables
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
from pydantic_settings import BaseSettings
|
||||
|
||||
|
||||
class QbittorrentConfig(BaseSettings):
|
||||
model_config = SettingsConfigDict(env_prefix="QBITTORRENT_")
|
||||
host: str = "localhost"
|
||||
port: int = 8080
|
||||
username: str = "admin"
|
||||
@@ -14,7 +13,6 @@ class QbittorrentConfig(BaseSettings):
|
||||
|
||||
|
||||
class TransmissionConfig(BaseSettings):
|
||||
model_config = SettingsConfigDict(env_prefix="TRANSMISSION_")
|
||||
path: str = "/transmission/rpc"
|
||||
https_enabled: bool = True
|
||||
host: str = "localhost"
|
||||
@@ -25,7 +23,6 @@ class TransmissionConfig(BaseSettings):
|
||||
|
||||
|
||||
class SabnzbdConfig(BaseSettings):
|
||||
model_config = SettingsConfigDict(env_prefix="SABNZBD_")
|
||||
host: str = "localhost"
|
||||
port: int = 8080
|
||||
api_key: str = ""
|
||||
|
||||
Reference in New Issue
Block a user