add(metadata): hardcover and google books as ebook providers

This commit is contained in:
Steppenstreuner
2026-08-31 07:32:01 +02:00
parent e6b6eba138
commit f08417cdc0
9 changed files with 484 additions and 15 deletions
+7 -2
View File
@@ -3,7 +3,12 @@ const $$ = (sel) => document.querySelectorAll(sel);
let libraries = [];
const LANGUAGE_NAMES = { german: "Deutsch", english: "Englisch" };
const SOURCE_NAMES = { musicbrainz: "MusicBrainz" };
const SOURCE_NAMES = {
musicbrainz: "MusicBrainz",
hardcover: "Hardcover",
googlebooks: "Google Books",
openlibrary: "Open Library",
};
async function api(path, opts = {}) {
const resp = await fetch(path, {
@@ -188,7 +193,7 @@ $("#lib-form").addEventListener("submit", async (e) => {
// ---- search & request ----
const EMPTY_HINTS = {
ebook: "Keine Treffer. Tipp: ISBN ohne Bindestriche oder Titel + Autor versuchen.",
ebook: "Keine Treffer. Tipp: ISBN ohne Bindestriche oder Titel + Autor versuchen — und ggf. „Alle Sprachen“ wählen.",
audiobook: "Keine Treffer. Tipp: EAN/ISBN funktioniert bei Audible nicht — nach Titel/Autor suchen.",
comic: "Keine Treffer bei AniList (Manga). Westliche Comics per „Manuell anlegen“ erfassen.",
};