Fix signature download
This commit is contained in:
parent
128b824bc4
commit
6c3f949f84
1 changed files with 2 additions and 1 deletions
3
new.py
3
new.py
|
@ -317,8 +317,9 @@ print("Checking for new card images")
|
||||||
for card in cardlist:
|
for card in cardlist:
|
||||||
if card["colour"] == "sig":
|
if card["colour"] == "sig":
|
||||||
if not os.path.exists("build/decks/sigs/" + card["name"][4:] + ".gif"):
|
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")
|
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:
|
for deck in decklist:
|
||||||
if not os.path.isdir("build/decks/" + deck["name"]):
|
if not os.path.isdir("build/decks/" + deck["name"]):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue