This commit is contained in:
jxxghp 2023-12-10 18:51:20 +08:00
parent a7be470f33
commit 14a8f44f8c

View File

@ -367,7 +367,7 @@ class SubscribeChain(ChainBase):
"""
if not subscribe.best_version:
# 非洗板
if not lefts:
if (not lefts and meta.type == MediaType.TV) or (downloads and meta.type == MediaType.MOVIE):
# 全部下载完成
logger.info(f'{mediainfo.title_year} 完成订阅')
self.subscribeoper.delete(subscribe.id)
@ -375,9 +375,7 @@ class SubscribeChain(ChainBase):
self.post_message(Notification(mtype=NotificationType.Subscribe,
title=f'{mediainfo.title_year} {meta.season} 已完成订阅',
image=mediainfo.get_message_image()))
elif downloads:
# 下载到了内容但不完整
if meta.type == MediaType.TV:
elif downloads and meta.type == MediaType.TV:
# 电视剧更新已下载集数
self.__update_subscribe_note(subscribe=subscribe, downloads=downloads)
# 更新订阅剩余集数和时间