I have a test wiki setup here: https://mtg-test.tiddlyhost.com/
All cards imported and loads in about 4 seconds on my machine, perfectly reasonable. I’ll consider this a solved problem. Thank you!
In an effort to reduce the size, I am generating the Scryfall URI from the card ID. However, I discovered that the URI is prefixed with the first two characters of the ID, presumably because they store the images in static folders. For example:
https://cards.scryfall.io/normal/front/a/4/a471b306-4941-4e46-a0cb-d92895c16f8a.jpg
- The ID for this card isa471b306-4941-4e46-a0cb-d92895c16f8a
- The first part of the URI https://cards.scryfall.io/normal/front/is static
- After that it is followed by id[0], a slash, and id[1]
I could add a field and pre-process this while avoiding storing the whole URI, but I’m struggling to find a string function to give me the first and second characters of the string. I’ve attempted to create a macro ($:scryfalluri in the new wiki) but I’m getting no output or error messages. Hopefully there’s a built-in macro or function to do a substring operation that I’m missing.