🐛 fix: parse wiki avatar

This commit is contained in:
xtaodada 2023-07-20 11:26:40 +08:00
parent c461d37d0c
commit 61ef956a16
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -21,9 +21,12 @@ all_avatars_name: Dict[str, Avatar] = {}
async def fetch_avatars(data: Children):
for content in data.list:
try:
m_element = Element(re.findall(r'属性/(.*?)\\', content.ext)[0])
m_destiny = Destiny(re.findall(r'命途/(.*?)\\', content.ext)[0])
m_quality = Quality(re.findall(r'星级/(.*?)\\', content.ext)[0])
except IndexError:
continue
avatar = Avatar(
id=content.content_id,
name=content.title,