Update test

重写rename,更容易修改
This commit is contained in:
EstrellaXD
2023-04-28 16:41:46 +08:00
parent f47448938b
commit f2f6744c5c
7 changed files with 130 additions and 94 deletions

View File

@@ -0,0 +1,12 @@
from pydantic import BaseModel, Field
class TorrentInfo(BaseModel):
name: str = Field(...)
link: str = Field(...)
class FileSet(BaseModel):
media_path: str = Field(...)
sc_subtitle: str | None = Field(None)
tc_subtitle: str | None = Field(None)