From 214a766d7d924bef18a29c5f7462250dd3c4c53c Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sun, 27 Aug 2023 08:34:02 +0800 Subject: [PATCH] =?UTF-8?q?fix=20#284=20#273=20=E4=BF=AE=E5=A4=8D=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E6=80=BB=E9=9B=86=E6=95=B0=E6=97=A0=E6=95=88?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chain/subscribe.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/chain/subscribe.py b/app/chain/subscribe.py index 0054b120..317d802a 100644 --- a/app/chain/subscribe.py +++ b/app/chain/subscribe.py @@ -681,12 +681,15 @@ class SubscribeChain(ChainBase): if no_exist_season: # 原季集列表 episode_list = no_exist_season.episodes - # 整季缺失且没有开始集数的的不处理 - if not episode_list and not start_episode: - return no_exists # 原总集数 total = no_exist_season.total_episode - if total_episode and start_episode: + # 更新剧集列表、开始集数、总集数 + if not episode_list and not start_episode: + # 整季缺失且没有开始集 + episodes = [] + start_episode = 1 + total_episode = total_episode or total + elif total_episode and start_episode: # 有开始集和总集数 episodes = list(range(start_episode, total_episode + 1)) elif not start_episode: @@ -699,9 +702,6 @@ class SubscribeChain(ChainBase): total_episode = no_exist_season.total_episode else: return no_exists - # 与原有集取交集 - if episode_list: - episodes = list(set(episodes).intersection(set(episode_list))) # 处理集合 no_exists[tmdb_id][begin_season] = NotExistMediaInfo( season=begin_season,