diff --git a/.gitignore b/.gitignore index 34ddf1abfb..4e12625642 100644 --- a/.gitignore +++ b/.gitignore @@ -95,6 +95,8 @@ Mage.Verify/AllCards.json.zip Mage.Verify/AllSets.json.zip Mage.Verify/AllCards.json Mage.Verify/AllSets.json +Mage.Verify/AllPrintings.json +Mage.Verify/AllPrintings.json.zip Mage.Verify/db releases diff --git a/Mage.Verify/src/main/java/mage/verify/MtgJson.java b/Mage.Verify/src/main/java/mage/verify/MtgJson.java index e6de2c378e..af284491bc 100644 --- a/Mage.Verify/src/main/java/mage/verify/MtgJson.java +++ b/Mage.Verify/src/main/java/mage/verify/MtgJson.java @@ -113,7 +113,7 @@ public final class MtgJson { } private static Map loadAllSets() throws IOException { - return readFromZip("AllSets.json.zip", new TypeReference>() { + return readFromZip("AllPrintings.json.zip", new TypeReference>() { }); } @@ -122,7 +122,7 @@ public final class MtgJson { if (stream == null) { File file = new File(filename); if (!file.exists()) { - URLConnection connection = new URL("https://mtgjson.com/json/" + filename).openConnection(); + URLConnection connection = new URL("https://mtgjson.com/files/" + filename).openConnection(); connection.setRequestProperty("user-agent", "xmage"); InputStream download = connection.getInputStream(); Files.copy(download, file.toPath(), StandardCopyOption.REPLACE_EXISTING); diff --git a/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java b/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java index 4a83e179a0..f0ca21b252 100644 --- a/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java +++ b/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java @@ -765,7 +765,7 @@ public class VerifyCardDataTest { checkSupertypes(card, ref); checkTypes(card, ref); checkColors(card, ref); - //checkNumbers(card, ref); // TODO: load data from allsets.json and check it (allcards.json do not have card numbers) + //checkNumbers(card, ref); // TODO: load data from AllPrintings.json and check it (allcards.json do not have card numbers) checkBasicLands(card, ref); checkMissingAbilities(card, ref); checkWrongSymbolsInRules(card);