From fea170424546f917831cba4a3c09c389f428c82e Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Sun, 8 Sep 2024 05:50:13 -0600 Subject: [PATCH] add download attribute to vide/audio links --- templates/videos.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/templates/videos.html b/templates/videos.html index 67b8e4a..c52f356 100644 --- a/templates/videos.html +++ b/templates/videos.html @@ -35,14 +35,20 @@ {{range .videos}} - {{.Title}} + + {{if eq .Status "completed"}} + {{.Title}} + {{else}} + {{.Title}} + {{end}} + {{.URL}} {{.Length}} {{.Status}} {{if eq .Status "completed"}} - Download Video ({{.VideoSize}}) | - Download Audio ({{.AudioSize}}) + Download Video ({{.VideoSize}}) | + Download Audio ({{.AudioSize}}) {{else if eq .Status "failed"}}