From 976ceeb81443d978f9b045ca3a69bfcf883ff864 Mon Sep 17 00:00:00 2001 From: sqzw-x Date: Sun, 21 Jan 2024 16:29:42 +0800 Subject: [PATCH] Fix: not translate all_actor (#59) --- src/models/core/translate.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/models/core/translate.py b/src/models/core/translate.py index 79b28fd..297f7bd 100644 --- a/src/models/core/translate.py +++ b/src/models/core/translate.py @@ -314,6 +314,8 @@ def translate_actor(json_data): # 未知演员,返回 actor = json_data['actor'] + if "actor_all," in config.nfo_include_new: + actor = json_data['all_actor'] if actor == config.actor_no_name: return json_data @@ -335,6 +337,8 @@ def translate_actor(json_data): if actor_data.get('href'): actor_href_list.append(actor_data.get('href')) json_data['actor'] = ','.join(actor_new_list) + if "actor_all," in config.nfo_include_new: + json_data['all_actor'] = ','.join(actor_new_list) # 演员主页 if actor_href_list: