Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit c13ad9d

Browse files
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.
1 parent 3bfa064 commit c13ad9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/com/fox2code/mmm/androidacy/AndroidacyRepoData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,11 @@ protected List<RepoModule> populate(JSONObject jsonObject) throws JSONException
191191
jsonObject.optString("notesUrl", ""));
192192
if (repoModule.zipUrl == null) {
193193
repoModule.zipUrl = // Fallback url in case the API doesn't have zipUrl
194-
"https://" + this.host + "/magisk/info/?module=" + moduleId;
194+
"https://" + this.host + "/magisk/info/" + moduleId;
195195
}
196196
if (repoModule.notesUrl == null) {
197197
repoModule.notesUrl = // Fallback url in case the API doesn't have notesUrl
198-
"https://" + this.host + "/magisk/readme/?module=" + moduleId;
198+
"https://" + this.host + "/magisk/readme/" + moduleId;
199199
}
200200
repoModule.zipUrl = this.injectToken(repoModule.zipUrl);
201201
repoModule.notesUrl = this.injectToken(repoModule.notesUrl);

0 commit comments

Comments
 (0)