Skip to content

Conversation

@muz
Copy link
Contributor

@muz muz commented Jan 11, 2026

  • EMN cards - We have them with a prefixes on the Collector Number, but Scryfall has since decided to expose the front side of these on the basic integer card number.
  • PMEI - Looks like the collector number referenced has changed for some reason or another (a correction?) Regardless, this is the collector number actually used by Scryfall and image downloads from that generated set number works as expected.
  • LTR - Looks like Scryfall have fixed this, so the TODO can be addressed.
muz@m1 mage % curl -I "https://api.scryfall.com/cards/ltr/0/qya?format=image" | grep location       
location: https://cards.scryfall.io/large/front/9/3/93de9042-cc62-4ade-8d8d-68fdbc84bfae.jpg?1740417602
muz@m1 mage % curl -I "https://api.scryfall.com/cards/ltr/0/?format=image" | grep location 
location: https://cards.scryfall.io/large/front/9/3/93de9042-cc62-4ade-8d8d-68fdbc84bfae.jpg?1740417602

put("MB1/Prophetic Bolt", "https://api.scryfall.com/cards/plst/C15-231/");

// LTR - 0 number for tokens only
// Scryfall has a bug, for some reason this link doesn't work with ?format=image even though it works with ?format=json
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not delete important commets and link example. It’s about undocumented feature, so keep the whole thing. You can remove only todo part

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment here isn't true anymore as it does work with ?format=image now. Visiting in browser, and inspecting the HTTP request via curl results in the correct image being served back

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put that code instead old one:

// lotr ring's image use secret language code (qya) and some default (en) api links can be broken with it in download code,
// if so then use alternative link format like https://api.scryfall.com/cards/ltr/0/qya?format=image
put("LTR/The One Ring/001", "https://api.scryfall.com/cards/ltr/0/");

put("TDM/Ugin, Eye of the Storms/382b", "https://api.scryfall.com/cards/tdm/382/en?format=image&face=back");

// EMN - double faced cards
put("EMN/Bruna, The Fading Light/15a", "https://api.scryfall.com/cards/emn/15/");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All double faced cards are workable by default, no needs in workaround like that. Make issue about that bug with steps to reproduce or example (or add it to pr). Maybe original problem in wrong card number, not in the code. Both sides download must be work for any double faced cards without scryfall direct link fixes. Must be research with enm and other sets. Maybe I’ll look at it later.

IMG_2113

@JayDi85 JayDi85 self-assigned this Jan 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants