From 4407433bd31df5526df0dd167d2d9d9d878a09d1 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Fri, 22 May 2026 10:37:15 -0500 Subject: support yt url queries for start time, etc --- main.go | 2 +- templates/watch.html | 2 +- watch.go | 33 +++++++++++++++++++++++++++++---- 3 files changed, 31 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index 3c6b79a..ff13499 100644 --- a/main.go +++ b/main.go @@ -18,7 +18,7 @@ func rootHandler(w http.ResponseWriter, r *http.Request) { //http.ServeFile(w, r, "static/index.html") renderIndexTemplate(w) } else { - renderWatchTemplate(w, path) // FIXME just redirect this one to /watch for simplicity + renderWatchTemplate(w, path, r.URL.RawQuery) // FIXME just redirect this one to /watch for simplicity } } diff --git a/templates/watch.html b/templates/watch.html index 2842547..501e44d 100644 --- a/templates/watch.html +++ b/templates/watch.html @@ -6,7 +6,7 @@ {{ define "content" }}