From d28f3ed74baeba231ad9fc19b44a5d486f1a368f Mon Sep 17 00:00:00 2001 From: WangEdward <73746306+WangEdward@users.noreply.github.com> Date: Fri, 23 Feb 2024 23:55:32 +0800 Subject: [PATCH] feat: add search_imdbid for subscribe --- app/db/models/subscribe.py | 2 ++ app/schemas/subscribe.py | 2 ++ 2 files changed, 4 insertions(+) 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