add RSS订阅插件

This commit is contained in:
jxxghp
2023-08-17 16:24:24 +08:00
parent 406bff1a3b
commit 0903730ab6
6 changed files with 771 additions and 31 deletions

View File

@ -32,6 +32,12 @@ class SubscribeOper(DbOper):
else:
return subscribe.id, "订阅已存在"
def exists(self, tmdbid: int, season: int):
"""
判断是否存在
"""
return True if Subscribe.exists(self._db, tmdbid=tmdbid, season=season) else False
def get(self, sid: int) -> Subscribe:
"""
获取订阅