Fix signature download

master
trémeur 1 month ago
parent 128b824bc4
commit 6c3f949f84

@ -317,8 +317,9 @@ print("Checking for new card images")
for card in cardlist:
if card["colour"] == "sig":
if not os.path.exists("build/decks/sigs/" + card["name"][4:] + ".gif"):
print("Downloading " + card["name"])
r = requests.get("https://colors-tcg.eu/cards/" + card["name"] + ".gif")
open("build/decks/sigs/" + card["name"] + ".gif","wb").write(r.content)
open("build/decks/sigs/" + card["name"][4:] + ".gif","wb").write(r.content)
for deck in decklist:
if not os.path.isdir("build/decks/" + deck["name"]):

Loading…
Cancel
Save