mirror of
https://github.com/PaiGramTeam/HonkaiStarRailWikiDataParser.git
synced 2025-01-30 18:38:36 +00:00
🐛 fix: parse wiki
This commit is contained in:
parent
a064d3d08f
commit
aebc0ae8a0
12
main.py
12
main.py
@ -22,10 +22,10 @@ async def wiki(
|
||||
main_data = await get_list()
|
||||
if override_materials:
|
||||
await fetch_materials(main_data[4])
|
||||
await fetch_materials(main_data[5], "消耗品")
|
||||
await fetch_materials(main_data[9], "任务道具")
|
||||
await fetch_materials(main_data[10], "贵重物")
|
||||
await fetch_materials(main_data[12])
|
||||
await fetch_materials(main_data[5])
|
||||
await fetch_materials(main_data[12], "消耗品")
|
||||
await fetch_materials(main_data[10], "任务道具")
|
||||
await fetch_materials(main_data[13], "贵重物")
|
||||
await fetch_materials_infos()
|
||||
await dump_materials(data_path / "materials.json")
|
||||
else:
|
||||
@ -42,13 +42,13 @@ async def wiki(
|
||||
else:
|
||||
await read_light_cones(data_path / "light_cones.json")
|
||||
if override_monsters:
|
||||
await fetch_monsters(main_data[2])
|
||||
await fetch_monsters(main_data[3])
|
||||
await fetch_monsters_infos()
|
||||
await dump_monsters(data_path / "monsters.json")
|
||||
else:
|
||||
await read_monsters(data_path / "monsters.json")
|
||||
if override_relics:
|
||||
await fetch_relics(main_data[3])
|
||||
await fetch_relics(main_data[2])
|
||||
await fetch_relics_infos()
|
||||
await dump_relics(data_path / "relics.json")
|
||||
else:
|
||||
|
@ -72,7 +72,7 @@ async def get_all_avatars_skills_icons(avatars: List[YattaAvatar]):
|
||||
local_path = ["basic_atk", "skill", "talent", "technique", "ultimate"]
|
||||
tasks = []
|
||||
for avatar in avatars:
|
||||
if avatar.id in ["8002", "8004"]:
|
||||
if avatar.id in [8002, 8004]:
|
||||
continue
|
||||
for i in range(len(remote_path)):
|
||||
tasks.append(
|
||||
|
Loading…
Reference in New Issue
Block a user