idiotbox-go

youtube web application in Go
git clone git://git.codemadness.org/idiotbox-go
Log | Files | Refs | README | LICENSE

commit dc2456d2660d3f85a56ce96663cf71ff9c689a5f
parent f4852b33db90f788f0d1330ffe30707aa610c328
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue, 10 Oct 2017 18:18:30 +0200

use direct embedded youtube link

This saves some bandwidth. suggested by trqx, thanks!

Diffstat:
data/templates/pages/search.html | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/data/templates/pages/search.html b/data/templates/pages/search.html @@ -46,11 +46,11 @@ <tr> <td class="thumb" width="120" align="center"> {{if .Snippet.Thumbnails.Default.Url}} - <a href="https://www.youtube.com/watch?v={{.Id}}"><img src="{{.Snippet.Thumbnails.Default.Url}}" alt="" height="90" /></a> + <a href="https://www.youtube.com/embed/{{.Id}}"><img src="{{.Snippet.Thumbnails.Default.Url}}" alt="" height="90" /></a> {{end}} </td> <td> - <span class="title"><a href="https://www.youtube.com/watch?v={{.Id}}" accesskey="{{$i}}">{{.Snippet.Title}}</a></span><br/> + <span class="title"><a href="https://www.youtube.com/embed/{{.Id}}" accesskey="{{$i}}">{{.Snippet.Title}}</a></span><br/> <span class="channel" title="{{.Snippet.Channeltitle}} RSS/Atom feed"><a href="https://www.youtube.com/feeds/videos.xml?channel_id={{.Snippet.Channelid}}">{{.Snippet.Channeltitle}}</a></span><br/> <span class="publishedat" title="{{.Snippet.Publishedat}}">Published: {{Friendlytime .Snippet.Publishedat}}</span><br/> <span class="stats">