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

@@ -4,6 +4,8 @@ import (
"encoding/json"
"fmt"
"strings"
"git.artlef.fr/PersonalLibraryManager/internal/callapiutils"
)
type OpenLibraryBookResult struct {
@@ -63,7 +65,7 @@ func CallOpenLibraryBook(openLibraryId string) (OpenLibraryBookResult, error) {
return response, err
}
var queryResult openLibraryParsedBook
err = fetchAndParseResult(u, &queryResult)
err = callapiutils.FetchAndParseResult(u, &queryResult)
if err != nil {
return response, err
}