This commit is contained in:
jxxghp
2023-12-31 08:38:54 +08:00
parent 7d44f24347
commit b5146620a6
2 changed files with 10 additions and 5 deletions

View File

@ -366,10 +366,14 @@ class SubscribeChain(ChainBase):
"""
判断是否应完成订阅
"""
mediakey = subscribe.tmdbid or subscribe.doubanid
# 是否有剩余集
no_lefts = lefts is None or not lefts.get(mediakey)
# 是否完成订阅
if not subscribe.best_version:
# 非洗板
if ((not lefts and meta.type == MediaType.TV)
or ((downloads or not lefts) and meta.type == MediaType.MOVIE)):
if ((no_lefts and meta.type == MediaType.TV)
or ((downloads or no_lefts) and meta.type == MediaType.MOVIE)):
# 全部下载完成
logger.info(f'{mediainfo.title_year} 完成订阅')
self.subscribeoper.delete(subscribe.id)