feat(tracker): show card thumbnails, set logos and pack art #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/card-images"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds card thumbnails, set logos and pack art. The images are taken from flibustier's
pokemon-tcg-exchange (thumbnails, logos) and
pokemon-tcg-pocket-database (pack art) repos.
S3_*env vars, app reaches MinIO overminio-net). No images are shown whenS3_ENDPOINTis unset./images/<key>proxy. It only servesthumbnails/,logos/andpacks/keys, lets browsers cache for 30 days and supportsIf-None-Match. If a set has no logo in the current language, the English one is served.manage.py sync_card_images(--sets,--force,--dry-run) uploads only the images that are missing, 8 at a time. Eight packs have different names upstream;PACK_SOURCE_NAMESmaps them.All 4,097 cards, 29 packs and 22 sets have images upstream. German logos exist for A1–B1; newer sets use English.
Deploy
S3_ENDPOINT,S3_BUCKET,S3_ACCESS_KEY_IDandS3_SECRET_ACCESS_KEYto.env.minio-netnetwork.python manage.py sync_card_images, and again after importing new sets.Testing