From c13ad9daaee05c6bf0fee18356d8b78e59886e4c Mon Sep 17 00:00:00 2001 From: Androidacy Service Account Date: Mon, 25 Jul 2022 15:55:06 -0400 Subject: [PATCH] Remove deprecated API format The old format no longer works and will return a 500 errors due to a bug in the underlying framework. Let's remove it in favor of the proper path-based implementation. --- .../java/com/fox2code/mmm/androidacy/AndroidacyRepoData.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/fox2code/mmm/androidacy/AndroidacyRepoData.java b/app/src/main/java/com/fox2code/mmm/androidacy/AndroidacyRepoData.java index 0a015ae..5f7db69 100644 --- a/app/src/main/java/com/fox2code/mmm/androidacy/AndroidacyRepoData.java +++ b/app/src/main/java/com/fox2code/mmm/androidacy/AndroidacyRepoData.java @@ -191,11 +191,11 @@ public class AndroidacyRepoData extends RepoData { jsonObject.optString("notesUrl", "")); if (repoModule.zipUrl == null) { repoModule.zipUrl = // Fallback url in case the API doesn't have zipUrl - "https://" + this.host + "/magisk/info/?module=" + moduleId; + "https://" + this.host + "/magisk/info/" + moduleId; } if (repoModule.notesUrl == null) { repoModule.notesUrl = // Fallback url in case the API doesn't have notesUrl - "https://" + this.host + "/magisk/readme/?module=" + moduleId; + "https://" + this.host + "/magisk/readme/" + moduleId; } repoModule.zipUrl = this.injectToken(repoModule.zipUrl); repoModule.notesUrl = this.injectToken(repoModule.notesUrl);