2023-04-14 16:07:57 -04:00
|
|
|
<div class="d-flex flex-column align-items-center">
|
|
|
|
<h1>Download Video</h1>
|
|
|
|
<h2 class="fs-4 text-muted">{{.Meta.Title}}</h2>
|
|
|
|
<p style="font-size: 0.85rem">{{.Url}}</p>
|
|
|
|
<img
|
|
|
|
src="{{.Meta.Thumbnail}}"
|
|
|
|
alt="{{.Meta.Title}}"
|
|
|
|
style="max-height: 25rem; max-width: 100%"
|
|
|
|
/>
|
|
|
|
<a
|
2023-04-14 17:14:27 -04:00
|
|
|
href="{{.BasePath}}/"
|
2023-04-14 16:07:57 -04:00
|
|
|
class="btn btn-secondary btn-sm mt-3"
|
|
|
|
style="width: 30rem; max-width: 100%"
|
|
|
|
>Download Another Video</a
|
|
|
|
>
|
|
|
|
</div>
|
2023-04-14 21:55:00 -04:00
|
|
|
{{$id := .Meta.ID}} {{$url := .Url}} {{$basePath := .BasePath}} {{range
|
|
|
|
.Formats}}
|
2023-04-14 16:07:57 -04:00
|
|
|
<div class="d-flex gap-3 mt-5 align-items-center">
|
|
|
|
<div style="width: 10rem">{{.Format}}</div>
|
|
|
|
<div class="flex-grow-1 d-flex gap-3">
|
|
|
|
<a
|
|
|
|
class="btn btn-primary flex-grow-1"
|
|
|
|
download="{{$id}}-{{.Resolution}}.{{.Ext}}"
|
|
|
|
href="{{.Url}}"
|
|
|
|
>
|
|
|
|
Download (direct)
|
|
|
|
</a>
|
|
|
|
<a
|
|
|
|
class="btn btn-primary flex-grow-1"
|
|
|
|
download="{{$id}}-{{.Resolution}}.{{.Ext}}"
|
2023-04-14 21:55:00 -04:00
|
|
|
href="{{$basePath}}/download/proxy?url={{queryEscape $url}}&format={{.FormatID}}"
|
2023-04-14 16:07:57 -04:00
|
|
|
>
|
|
|
|
Download (proxied)
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|