mirror of
https://github.com/correl/mtgsqlive.git
synced 2024-12-01 11:09:57 +00:00
final fixes; AllSets.json is a go!
This commit is contained in:
parent
cc120af68a
commit
936c53cafc
1 changed files with 6 additions and 0 deletions
|
@ -62,6 +62,8 @@ def main():
|
||||||
if '"legalities":' in line: continue
|
if '"legalities":' in line: continue
|
||||||
if '"source":' in line: continue
|
if '"source":' in line: continue
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if replace_and_write_these_keys(f2, line, "colorIdentity"): continue
|
if replace_and_write_these_keys(f2, line, "colorIdentity"): continue
|
||||||
if replace_and_write_these_keys(f2, line, "colors"): continue
|
if replace_and_write_these_keys(f2, line, "colors"): continue
|
||||||
if replace_and_write_these_keys(f2, line, "printings"): continue
|
if replace_and_write_these_keys(f2, line, "printings"): continue
|
||||||
|
@ -104,6 +106,10 @@ def str_to_json(line, key_val):
|
||||||
|
|
||||||
while line.strip()[-1:] != "]":
|
while line.strip()[-1:] != "]":
|
||||||
line = line[:-1]
|
line = line[:-1]
|
||||||
|
|
||||||
|
# BFM causes an issue, manual fix
|
||||||
|
if '"Scariest", "Creature"' in line:
|
||||||
|
line = line.replace('"You"ll"', '"You\'ll"')
|
||||||
|
|
||||||
try: line = line[:line_index] + json.dumps(json.loads(line[line_index:]), indent=2)
|
try: line = line[:line_index] + json.dumps(json.loads(line[line_index:]), indent=2)
|
||||||
except: line = line
|
except: line = line
|
||||||
|
|
Loading…
Reference in a new issue