1
0
mirror of https://github.com/osmarks/meme-search-engine.git synced 2025-09-13 08:16:03 +00:00

misc fixes

- thumbnails/OCR off was broken
- problematic video files caused segfaults (I blame ffmpeg for this)
This commit is contained in:
2024-05-30 19:05:54 +01:00
parent 3257521068
commit 747058e254
4 changed files with 33 additions and 27 deletions

View File

@@ -140,7 +140,7 @@
<div class="result">
<a href={util.getURL(result)}>
{#if util.hasFormat(results, result, "VIDEO")}
<video controls poster={util.thumbnailURL(results, result, "jpegh")} preload="metadata" on:loadstart={updateCounter} on:loadedmetadata={redrawGrid}>
<video controls poster={util.hasFormat("jpegh") ? util.thumbnailURL(results, result, "jpegh") : null} preload="metadata" on:loadstart={updateCounter} on:loadedmetadata={redrawGrid} on:loadeddata={redrawGrid}>
<source src={util.getURL(result)} />
</video>
{:else}

View File

@@ -7,7 +7,7 @@ esbuild
.build({
entryPoints: [path.join(__dirname, "app.js")],
bundle: true,
minify: false,
minify: true,
outfile: path.join(__dirname, "../static/app.js"),
plugins: [sveltePlugin({
preprocess: {