Switch from open library API to Inventaire API

This commit is contained in:
2026-01-16 16:12:59 +01:00
parent 1bb841332c
commit a04aff6056
22 changed files with 338 additions and 108 deletions

View File

@@ -3,6 +3,8 @@ package openlibrary
import (
"encoding/json"
"fmt"
"git.artlef.fr/PersonalLibraryManager/internal/callapiutils"
)
type OpenLibraryAuthorResult struct {
@@ -46,7 +48,7 @@ func CallOpenLibraryAuthor(openLibraryId string) (OpenLibraryAuthorResult, error
return response, err
}
var queryResult openLibraryParsedAuthor
err = fetchAndParseResult(u, &queryResult)
err = callapiutils.FetchAndParseResult(u, &queryResult)
if err != nil {
return response, err
}