Switch from open library API to Inventaire API
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user