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:
@@ -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}
|
||||
|
@@ -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: {
|
||||
|
Reference in New Issue
Block a user