Skip to content

Commit

Permalink
Fix: not translate all_actor (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
sqzw-x committed Jan 21, 2024
1 parent f4d0208 commit 976ceeb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/models/core/translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand Down

0 comments on commit 976ceeb

Please sign in to comment.