mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-21 22:58:05 +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
|
||||
cell = []
|
||||
async for line in response.aiter_lines():
|
||||
if line == " {\n":
|
||||
if line == " {\n":
|
||||
started = True
|
||||
continue
|
||||
if line in [" },\n", " }\n"]:
|
||||
if line in [" },\n", " }\n"]:
|
||||
started = False
|
||||
if any("MATERIAL_NAMECARD" in x for x in cell):
|
||||
material_json_data.append(json.loads("{" + "".join(cell) + "}"))
|
||||
|
Loading…
Reference in New Issue
Block a user