mirror of
https://github.com/PaiGramTeam/HonkaiStarRailWikiDataParser.git
synced 2024-11-16 06:25:25 +00:00
🐛 fix: parse wiki avatar
This commit is contained in:
parent
c461d37d0c
commit
61ef956a16
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user