refactor + cache de la bdd
This commit is contained in:
1 parent
568e577173
commit
3d6224e3af
8 files changed
+205
-140
No files matched your search
@@ -26,12 +26,6 @@ public class ForgeSvcFile {
|
||||
}
|
||||
|
||||
public String getDownloadUrl(int modID) throws MalformedURLException {
|
||||
System.out.println("https://addons-ecs.forgesvc.net/api/v2/addon/"+modID+"/file/"+getProjectFileId());
|
||||
return HttpHelper.readStringFromUrl("https://addons-ecs.forgesvc.net/api/v2/addon/"+modID+"/file/"+projectFileId+"/download-url");
|
||||
}
|
||||
|
||||
public String getMD5(int modID)
|
||||
{
|
||||
return "https://addons-ecs.forgesvc.net/api/v2/addon/"+modID+"/file/"+getProjectFileId();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user