Files
Magic-Token/scripts
tooomm 9fdba7d3b1
Some checks failed
Picture Health / Check image links (push) Has been cancelled
Update version on tokens.xml changes / update_version (push) Has been cancelled
Image URLs / Update links (push) Has been cancelled
Scryfall API: Add headers and enhance logging (#358)
2026-04-01 17:08:45 +02:00
..

Scripts

update_image_links
This script changes the links from the old CDN on c1.scryfall.com to the new CDN on cards.scryfall.io.
It reads a tokens.xml file containing CDN picURLs of either version, makes requests to the Scryfall API to receive the most up-to-date URLs for each token, and generates an output file.
--inplace / -i will update the input file
--output / -o will create a new file of your choice

Basic call to run the script:

python3 update_image_links.py tokens.xml -i