mirror of
https://github.com/packwiz/packwiz.git
synced 2025-11-19 01:24:32 +01:00
Change backend request code to use new CurseForge API (WIP)
See the packwiz Discord for more information, as the changes with the new API Terms and Conditions have some implications for packwiz. This commit isn't fully functional yet; I have more changes to make.
This commit is contained in:
@@ -61,7 +61,7 @@ var detectCmd = &cobra.Command{
|
||||
}
|
||||
fmt.Printf("Found %d files, submitting...\n", len(hashes))
|
||||
|
||||
res, err := getFingerprintInfo(hashes)
|
||||
res, err := cfDefaultClient.getFingerprintInfo(hashes)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
return
|
||||
@@ -82,7 +82,7 @@ var detectCmd = &cobra.Command{
|
||||
}
|
||||
fmt.Println("Installing...")
|
||||
for _, v := range res.ExactMatches {
|
||||
modInfoData, err := getModInfo(v.ID)
|
||||
modInfoData, err := cfDefaultClient.getModInfo(v.ID)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
os.Exit(1)
|
||||
|
||||
Reference in New Issue
Block a user