diff --git a/backend/src/module/models/config.py b/backend/src/module/models/config.py index 34a4385f5..c41b256f9 100644 --- a/backend/src/module/models/config.py +++ b/backend/src/module/models/config.py @@ -11,11 +11,14 @@ class Program(BaseModel): class Downloader(BaseModel): - host_: str - username_: str - password_: str - path: str - ssl: bool + type: str = Field("qbittorrent", description="Downloader type") + host_: str = Field("172.17.0.1:8080", alias="host", description="Downloader host") + username_: str = Field("admin", alias="username", description="Downloader username") + password_: str = Field( + "adminadmin", alias="password", description="Downloader password" + ) + path: str = Field("/downloads/Bangumi", description="Downloader path") + ssl: bool = Field(False, description="Downloader ssl") class QbDownloader(Downloader):