mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-22 07:07:46 +00:00
🚑️ Fix namecard parse
This commit is contained in:
parent
2d9e63ff98
commit
154b5fd243
@ -65,10 +65,10 @@ async def update_metadata_from_github(overwrite: bool = True):
|
|||||||
started = False
|
started = False
|
||||||
cell = []
|
cell = []
|
||||||
async for line in response.aiter_lines():
|
async for line in response.aiter_lines():
|
||||||
if line == " {\n":
|
if line == " {\n":
|
||||||
started = True
|
started = True
|
||||||
continue
|
continue
|
||||||
if line in [" },\n", " }\n"]:
|
if line in [" },\n", " }\n"]:
|
||||||
started = False
|
started = False
|
||||||
if any("MATERIAL_NAMECARD" in x for x in cell):
|
if any("MATERIAL_NAMECARD" in x for x in cell):
|
||||||
material_json_data.append(json.loads("{" + "".join(cell) + "}"))
|
material_json_data.append(json.loads("{" + "".join(cell) + "}"))
|
||||||
|
Loading…
Reference in New Issue
Block a user