diff src/VideoPage.ts @ 36:ed16fdbb3996

rewrite WIP. scan fs separately; store in db. thumbs are broken for now
author drewp@bigasterisk.com
date Tue, 03 Dec 2024 00:08:22 -0800
parents 9edb3df3cdb3
children 7cacfae58430
line wrap: on
line diff
--- a/src/VideoPage.ts	Mon Dec 02 23:27:59 2024 -0800
+++ b/src/VideoPage.ts	Tue Dec 03 00:08:22 2024 -0800
@@ -11,6 +11,7 @@
   webRelPath: string;
   label: string;
   thumbRelPath: string;
+  webDataPath: string;
 }
 interface Subdir {
   label: string;
@@ -104,7 +105,7 @@
       <div class="listing">
       ${this.subdirs.map((s) => html`<div class="subdir"><a href="${"./?" + subdirQuery(s.path)}">${s.label}</a></div>`)}
       ${this.videos.map(
-        (v) => html`<video-section @playVideo=${this.playVideo} thumbRelPath="${v.thumbRelPath}" title="${v.label}" manifest=${v.webRelPath}></video-section>`
+        (v) => html`<video-section @playVideo=${this.playVideo} thumbRelPath="${v.thumbRelPath}" title="${v.label}" manifest="/video/files/${v.webDataPath}"></video-section>`
       )}
       </div>
       <p><a href="ingest/">Add new videos...</a></p>