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: """ 获取指定类型的订阅