fix: collector torrent not added bug.

This commit is contained in:
EstrellaXD
2023-10-03 22:46:58 +08:00
parent f82ea902e6
commit 8e5d7d2e02
2 changed files with 7 additions and 0 deletions

View File

@@ -22,6 +22,8 @@ class SeasonCollector(DownloadClient):
logger.info(
f"Collections of {bangumi.official_title} Season {bangumi.season} completed."
)
for torrent in torrents:
torrent.downloaded = True
bangumi.eps_collect = True
if engine.bangumi.update(bangumi):
engine.bangumi.add(bangumi)