From bcc29afa2bd3611d07c5b89937b1c019c765ba5e Mon Sep 17 00:00:00 2001 From: jxxghp Date: Wed, 18 Oct 2023 21:14:17 +0800 Subject: [PATCH] fix #885 --- app/chain/download.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/chain/download.py b/app/chain/download.py index 1ef49bea..364aec88 100644 --- a/app/chain/download.py +++ b/app/chain/download.py @@ -1,4 +1,5 @@ import base64 +import copy import json import re import time @@ -345,7 +346,8 @@ class DownloadChain(ChainBase): # 剩余季数 need = list(set(_need).difference(set(_current))) # 清除已下载的季信息 - for _sea in list(no_exists.get(_tmdbid)): + seas = copy.deepcopy(no_exists.get(_tmdbid)) + for _sea in list(seas): if _sea not in need: no_exists[_tmdbid].pop(_sea) if not no_exists.get(_tmdbid) and no_exists.get(_tmdbid) is not None: