fix bug
This commit is contained in:
parent
a7be470f33
commit
14a8f44f8c
@ -367,7 +367,7 @@ class SubscribeChain(ChainBase):
|
|||||||
"""
|
"""
|
||||||
if not subscribe.best_version:
|
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} 完成订阅')
|
logger.info(f'{mediainfo.title_year} 完成订阅')
|
||||||
self.subscribeoper.delete(subscribe.id)
|
self.subscribeoper.delete(subscribe.id)
|
||||||
@ -375,14 +375,12 @@ class SubscribeChain(ChainBase):
|
|||||||
self.post_message(Notification(mtype=NotificationType.Subscribe,
|
self.post_message(Notification(mtype=NotificationType.Subscribe,
|
||||||
title=f'{mediainfo.title_year} {meta.season} 已完成订阅',
|
title=f'{mediainfo.title_year} {meta.season} 已完成订阅',
|
||||||
image=mediainfo.get_message_image()))
|
image=mediainfo.get_message_image()))
|
||||||
elif downloads:
|
elif downloads and meta.type == MediaType.TV:
|
||||||
# 下载到了内容但不完整
|
# 电视剧更新已下载集数
|
||||||
if meta.type == MediaType.TV:
|
self.__update_subscribe_note(subscribe=subscribe, downloads=downloads)
|
||||||
# 电视剧更新已下载集数
|
# 更新订阅剩余集数和时间
|
||||||
self.__update_subscribe_note(subscribe=subscribe, downloads=downloads)
|
self.__update_lack_episodes(lefts=lefts, subscribe=subscribe,
|
||||||
# 更新订阅剩余集数和时间
|
mediainfo=mediainfo, update_date=True)
|
||||||
self.__update_lack_episodes(lefts=lefts, subscribe=subscribe,
|
|
||||||
mediainfo=mediainfo, update_date=True)
|
|
||||||
else:
|
else:
|
||||||
# 未下载到内容且不完整
|
# 未下载到内容且不完整
|
||||||
logger.info(f'{mediainfo.title_year} 未下载完整,继续订阅 ...')
|
logger.info(f'{mediainfo.title_year} 未下载完整,继续订阅 ...')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user