diff options
| author | Julian Hurst <julian.hurst@digdash.com> | 2024-09-12 17:34:20 +0200 |
|---|---|---|
| committer | Julian Hurst <julian.hurst@digdash.com> | 2024-09-12 17:34:20 +0200 |
| commit | a205aae0575b92c28f71ff99270a67b286196384 (patch) | |
| tree | 4c2d0f729041e11dfa1c3324d2e5c92dc63bd5a2 /templates | |
| parent | cbd9317993b188ef142aad11b64a235206369aa0 (diff) | |
| download | grimtube-a205aae0575b92c28f71ff99270a67b286196384.tar.gz | |
Support low quality (format 22 or 18, i.e. video+audio) streaming
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/search.html | 4 | ||||
| -rw-r--r-- | templates/syncstream.html | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/templates/search.html b/templates/search.html index 6a9ce28..70c3490 100644 --- a/templates/search.html +++ b/templates/search.html @@ -26,10 +26,10 @@ {{range .Items}} <tr> <td> - <a href="/embed?id={{.Id}}&url={{.Url}}"><img width=240 src="{{.ThumbUrl}}"></a> + <a href="/stream?url={{.Url}}"><img width=240 src="{{.ThumbUrl}}"></a> </td> <td> - <a href="/embed?id={{.Id}}&url={{.Url}}">{{.Title}}</a> + <a href="/stream?url={{.Url}}">{{.Title}}</a> <br/> <a href="{{.ChannelUrl}}">{{.ChannelTitle}}</a> | <a href="{{.AtomUrl}}">Atom feed</a> <br/> diff --git a/templates/syncstream.html b/templates/syncstream.html new file mode 100644 index 0000000..6a8ec1d --- /dev/null +++ b/templates/syncstream.html @@ -0,0 +1,6 @@ +{{define "title"}}Search{{end}} +{{define "content"}} + <video id="video" controls> + <source src="{{.Url}}"> + </video> +{{end}} |
