From fed1fbb0913ae491597ecd70328290a0daa2853e Mon Sep 17 00:00:00 2001 From: nicol Date: Sun, 8 Dec 2024 22:30:50 +0100 Subject: [PATCH] updates --- .../java/org/magic/api/providers/impl/ScryFallProvider.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/org/magic/api/providers/impl/ScryFallProvider.java b/src/main/java/org/magic/api/providers/impl/ScryFallProvider.java index fdf3f3bcf..76ab66f6f 100644 --- a/src/main/java/org/magic/api/providers/impl/ScryFallProvider.java +++ b/src/main/java/org/magic/api/providers/impl/ScryFallProvider.java @@ -211,24 +211,20 @@ public List searchCardByCriteria(String att, String crit, MTGEdition me if(att.equals(ID)) { - q.clearContents(); - q.url(BASE_URI+BASE_SUBURI+crit); try { return List.of(cacheCards.get(crit, new Callable() { @Override public MTGCard call() throws Exception { - return generateCard(q.toJson().getAsJsonObject(),true); + return generateCard(URLTools.extractAsJson(BASE_URI+BASE_SUBURI+crit).getAsJsonObject(),true); } })); } catch (ExecutionException e) { logger.error(e); } - } - return execute(q); }