From c9d3b26930d38ba3174488692ca1e605827ba6b3 Mon Sep 17 00:00:00 2001 From: Telesphoreo Date: Thu, 7 Apr 2022 02:16:37 -0500 Subject: [PATCH] Forgot to do it here --- src/main/java/dev/plex/util/UpdateChecker.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/dev/plex/util/UpdateChecker.java b/src/main/java/dev/plex/util/UpdateChecker.java index 65f7246..01da09d 100644 --- a/src/main/java/dev/plex/util/UpdateChecker.java +++ b/src/main/java/dev/plex/util/UpdateChecker.java @@ -137,13 +137,13 @@ public class UpdateChecker extends PlexBase public void updateJar() { CloseableHttpClient client = HttpClients.createDefault(); - HttpGet get = new HttpGet(DOWNLOAD_PAGE + "lastSuccessfulBuild/api/json"); + HttpGet get = new HttpGet(DOWNLOAD_PAGE + "job/master/lastSuccessfulBuild/api/json"); try { HttpResponse response = client.execute(get); JSONObject object = new JSONObject(EntityUtils.toString(response.getEntity(), StandardCharsets.UTF_8)); JSONObject artifact = object.getJSONArray("artifacts").getJSONObject(0); - String name = artifact.getString("displayPath"); + String name = artifact.getString("fileName"); PlexLog.log("Downloading latest Plex jar file: " + name); CompletableFuture.runAsync(() -> {