Files
Auto_Bangumi/src/module/models/torrent.py
EstrellaXD f2f6744c5c Update test
重写rename,更容易修改
2023-04-28 16:41:46 +08:00

12 lines
268 B
Python

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)