From 03954c3a3564771d08184b8d4debbbd43d0c04bd Mon Sep 17 00:00:00 2001 From: lededev Date: Sat, 23 Oct 2021 19:19:38 +0800 Subject: [PATCH] map return result keeping the same order with args, no need sorted() --- core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core.py b/core.py index 73f2e5a..cf9d040 100755 --- a/core.py +++ b/core.py @@ -242,7 +242,7 @@ def extrafanart_download_threadpool(url_list, save_dir, number, source_movie): return with ThreadPoolExecutor(os.cpu_count()) as pool: result = pool.map(download_one_file, mp_args) - for s in sorted(result, key=lambda p: 0 if not p else int(re.findall('(\d+)\.jpg$', p, re.A)[0])): + for s in result: print(s) if s else None if not all(result): # 非致命错误,电影不移入失败文件夹,将来可以用模式3补齐 print('[-]Failed download some extrafanart images for number [{number}], you may retry run mode 3 later.')