diff --git a/app/chain/subscribe.py b/app/chain/subscribe.py index 3896adfa..6d2edb39 100644 --- a/app/chain/subscribe.py +++ b/app/chain/subscribe.py @@ -737,6 +737,9 @@ class SubscribeChain(ChainBase): if no_exist_season: # 原季集列表 episode_list = no_exist_season.episodes + # 整季缺失的不处理 + if not episode_list: + return no_exists # 原总集数 total = no_exist_season.total_episode if total_episode and start_episode: diff --git a/app/helper/torrent.py b/app/helper/torrent.py index 8cecdeb1..0efa0322 100644 --- a/app/helper/torrent.py +++ b/app/helper/torrent.py @@ -188,7 +188,12 @@ class TorrentHelper: # 季数 _season_len = str(len(_meta.season_list)).rjust(2, '0') # 集数 - _episode_len = str(9999 - len(_meta.episode_list)).rjust(4, '0') + if not _meta.episode_list: + # 无集数的排最前面 + _episode_len = "9999" + else: + # 集数越多的排越前面 + _episode_len = str(len(_meta.episode_list)).rjust(4, '0') # 优先规则 priority = self.system_config.get(SystemConfigKey.TorrentsPriority) if priority != "site":