From e430a3e88bdb54046f9f1533e1c978be54ddf635 Mon Sep 17 00:00:00 2001 From: thsrite Date: Mon, 22 Apr 2024 15:49:57 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=8E=B7=E5=8F=96=E6=8C=87=E5=AE=9Atmdb?= =?UTF-8?q?=5Fid=E7=9A=84=E8=AE=A2=E9=98=85=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/db/subscribe_oper.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/db/subscribe_oper.py b/app/db/subscribe_oper.py index 2ac445cf..8525ed81 100644 --- a/app/db/subscribe_oper.py +++ b/app/db/subscribe_oper.py @@ -89,6 +89,12 @@ class SubscribeOper(DbOper): subscribe.update(self._db, payload) return subscribe + def get_by_tmdbid(self, tmdbid: int, season: int = None) -> List[Subscribe]: + """ + 获取指定tmdb_id的订阅 + """ + return Subscribe.get_by_tmdbid(self._db, tmdbid=tmdbid, season=season) + def list_by_type(self, mtype: str, days: int = 7) -> Subscribe: """ 获取指定类型的订阅