mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Implemented new caching system with GetModInfoFromMD5
This commit is contained in:
committed by
Timothy Baldridge
parent
4900423f70
commit
233c85b36d
@ -268,10 +268,10 @@ namespace Wabbajack.Lib.NexusApi
|
|||||||
return GetCached<GetModFilesResponse>(url).files;
|
return GetCached<GetModFilesResponse>(url).files;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<MD5Response> GetModInfoFromMD5(string gameName, string md5Hash)
|
public List<MD5Response> GetModInfoFromMD5(Game game, string md5Hash)
|
||||||
{
|
{
|
||||||
var url = $"https://api.nexusmods.com/v1/games/{gameName}/mods/md5_search/{md5Hash}.json";
|
var url = $"https://api.nexusmods.com/v1/games/{GameRegistry.Games[game].NexusName}/mods/md5_search/{md5Hash}.json";
|
||||||
return Get<List<MD5Response>>(url);
|
return GetCached<List<MD5Response>>(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ModInfo GetModInfo(Game game, string modId)
|
public ModInfo GetModInfo(Game game, string modId)
|
||||||
|
Reference in New Issue
Block a user