This commit is contained in:
jxxghp 2023-10-01 21:55:49 +08:00
parent 02296e1758
commit 35be18bb1a

View File

@ -515,12 +515,9 @@ class PersonMeta(_PluginBase):
# 饰演角色 # 饰演角色
if douban_actor.get("character"): if douban_actor.get("character"):
# "饰 詹姆斯·邦德 James Bond 007" # "饰 詹姆斯·邦德 James Bond 007"
character = re.search(r"\s(.*)\s*", character = re.sub(r"\s+", "",
douban_actor.get("character")) douban_actor.get("character"))
if character: ret_people["Role"] = character
ret_people["Role"] = character.group(1)
else:
ret_people["Role"] = douban_actor.get("character")
updated_name = True updated_name = True
# 图片 # 图片
if douban_actor.get("avatar", {}).get("large"): if douban_actor.get("avatar", {}).get("large"):