diff --git a/static/app.js b/static/app.js index dfd4a7e..d69ddaa 100644 --- a/static/app.js +++ b/static/app.js @@ -127,6 +127,7 @@ $("#search-form").addEventListener("submit", async (e) => {
${esc(r.title)} ${esc(r.authors)} + ${r.narrator ? `๐ŸŽ™ ${esc(r.narrator)}` : ""} ${r.year ?? ""} ${r.external_id ? "ยท " + esc(r.external_id) : ""} ${type === "comic" ? `` : ""}
@@ -149,7 +150,8 @@ $("#search-form").addEventListener("submit", async (e) => { method: "POST", body: JSON.stringify({ library_id: parseInt(libId), - title: r.title, authors: r.authors, external_id: r.external_id, + title: r.title, authors: r.authors, narrator: r.narrator || "", + external_id: r.external_id, year: r.year, series: r.series, cover_url: r.cover_url, volume: volInput && volInput.value ? parseInt(volInput.value) : null, }), @@ -192,6 +194,7 @@ $("#manual-form").addEventListener("submit", async (e) => { body: JSON.stringify({ library_id: parseInt(data.library_id), series: data.series || data.title, authors: data.authors, + narrator: data.narrator || "", volume_from: parseInt(data.volume), volume_to: parseInt(data.volume_to), year: data.year ? parseInt(data.year) : null, @@ -204,6 +207,7 @@ $("#manual-form").addEventListener("submit", async (e) => { body: JSON.stringify({ library_id: parseInt(data.library_id), title: data.title, authors: data.authors, series: data.series, + narrator: data.narrator || "", external_id: data.external_id, year: data.year ? parseInt(data.year) : null, volume: data.volume ? parseInt(data.volume) : null, @@ -393,6 +397,7 @@ async function runQuickSearch() {
${esc(r.title)} ${esc(r.authors)} + ${r.narrator ? `๐ŸŽ™ ${esc(r.narrator)}` : ""} ${r.year ?? ""}
@@ -423,7 +428,8 @@ async function pickQuickResult(r) { method: "POST", body: JSON.stringify({ library_id: parseInt(libId), - title: r.title, authors: r.authors, external_id: r.external_id, + title: r.title, authors: r.authors, narrator: r.narrator || "", + external_id: r.external_id, year: r.year, series: r.series, cover_url: r.cover_url, }), }); diff --git a/static/index.html b/static/index.html index 5714686..12c9ad6 100644 --- a/static/index.html +++ b/static/index.html @@ -46,6 +46,7 @@ +