Skip to content

Commit

Permalink
fix: download config bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
EstrellaXD committed Jan 2, 2024
1 parent 6c26c53 commit 8142299
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions backend/src/module/models/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 8142299

Please sign in to comment.