fix webhook plugin

This commit is contained in:
jxxghp
2023-10-04 08:01:02 +08:00
parent a970f90c6f
commit 2aa93fa341
2 changed files with 25 additions and 8 deletions

View File

@ -517,7 +517,10 @@ class PersonMeta(_PluginBase):
# "饰 詹姆斯·邦德 James Bond 007"
character = re.sub(r"\s+", "",
douban_actor.get("character"))
ret_people["Role"] = character
character = re.sub("演员", "",
character)
if character:
ret_people["Role"] = character
updated_name = True
# 图片
if douban_actor.get("avatar", {}).get("large"):