Added new Mythic Edition (MED) set (16 cards, scryfall download)

This commit is contained in:
Oleg Agafonov 2019-02-09 16:45:27 +04:00
parent c29b68f030
commit 00ad61b6bd
4 changed files with 59 additions and 13 deletions

View file

@ -66,8 +66,9 @@ public enum ScryfallImageSource implements CardImageSource {
if (baseUrl == null && card.isCollectorIdWithStr()) {
// WARNING, after 2018 it's not compatible and some new sets have GUID files instead card numbers
// TODO: replace card number links to API calls (need test with lands, alternative images and double faces), replace not working images by direct links
if (card.getCollectorId().startsWith("U")) {
// fix for Ultimate Box Topper (PUMA) -- need to use API
if (card.getCollectorId().startsWith("U") || card.getCollectorIdAsInt() == -1) {
// fix for Ultimate Box Topper (PUMA) and Mythic Edition (MED) -- need to use API
// ignored and go to API call at the end
} else {
baseUrl = "https://img.scryfall.com/cards/large/" + localizedCode + "/" + formatSetName(card.getSet(), isToken) + "/"

View file

@ -25,6 +25,7 @@ public class ScryfallImageSupportCards {
put("EURO", "pelp");
put("GPX", "pgpx");
put("MED", "me1");
put("MEDM", "med");
}
};
@ -236,6 +237,7 @@ public class ScryfallImageSupportCards {
add("UMA");
add("PUMA");
add("RNA");
add("MEDM");
//
add("EURO");
add("GPX");