diff --git a/new.py b/new.py index 8aaed06..e278bf5 100644 --- a/new.py +++ b/new.py @@ -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"]):