fix 目录监控转移记录补充download_hash

This commit is contained in:
thsrite
2023-08-19 13:37:05 +08:00
parent ee790860a3
commit 4d8e2a5d03
3 changed files with 210 additions and 144 deletions

View File

@ -42,3 +42,16 @@ class DownloadHistoryOper(DbOper):
清空下载记录
"""
DownloadHistory.truncate(self._db)
def get_last_by(self, mtype=None, title: str = None, year: str = None,
season: str = None, episode: str = None, tmdbid=None) -> DownloadHistory:
"""
按类型、标题、年份、季集查询下载记录
"""
return DownloadHistory.get_last_by(db=self._db,
mtype=mtype,
title=title,
year=year,
season=season,
episode=episode,
tmdbid=tmdbid)