fix 已下载但未入库导致重复下载问题

This commit is contained in:
jxxghp
2023-07-06 17:42:12 +08:00
parent a9dc77ce0c
commit 2ad62a468c
2 changed files with 66 additions and 1 deletions

View File

@ -404,6 +404,9 @@ class DownloadChain(ChainBase):
userid=userid)
if not download_id:
continue
# 把识别的集更新到上下文
context.meta_info.begin_episode = min(selected_episodes)
context.meta_info.end_episode = max(selected_episodes)
# 下载成功
downloaded_list.append(context)
# 更新仍需集数