add db订阅、下载历史根据类型和时间查询列表(插件方法)
This commit is contained in:
@ -131,3 +131,11 @@ class DownloadHistoryOper(DbOper):
|
||||
type=type,
|
||||
tmdbid=tmdbid,
|
||||
seasons=seasons)
|
||||
|
||||
def list_by_type(self, mtype: str, days: int = 7) -> List[DownloadHistory]:
|
||||
"""
|
||||
获取指定类型的下载历史
|
||||
"""
|
||||
return DownloadHistory.list_by_type(db=self._db,
|
||||
mtype=mtype,
|
||||
days=days)
|
||||
|
Reference in New Issue
Block a user