diff --git a/app/db/models/subscribe.py b/app/db/models/subscribe.py index 3d2d3344c..7e74b1eb4 100644 --- a/app/db/models/subscribe.py +++ b/app/db/models/subscribe.py @@ -67,6 +67,8 @@ class Subscribe(Base): current_priority = Column(Integer) # 保存路径 save_path = Column(String) + # 是否使用 imdbid 搜索 + search_imdbid = Column(Integer, default=0) @staticmethod @db_query diff --git a/app/schemas/subscribe.py b/app/schemas/subscribe.py index e6054e5e8..1249adf23 100644 --- a/app/schemas/subscribe.py +++ b/app/schemas/subscribe.py @@ -59,6 +59,8 @@ class Subscribe(BaseModel): current_priority: Optional[int] = None # 保存路径 save_path: Optional[str] = None + # 是否使用 imdbid 搜索 + search_imdbid: Optional[int] = 0 class Config: orm_mode = True