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>
|
2023-04-14 22:01:36 -04:00
|
|
|
<img src="{{.Meta.Thumbnail}}" alt="{{.Meta.Title}}" style="max-height: 25rem; max-width: 100%" />
|
|
|
|
<a href="{{.BasePath}}/" class="btn btn-secondary btn-sm mt-3" style="width: 30rem; max-width: 100%">
|
|
|
|
Download Another Video
|
|
|
|
</a>
|
2023-04-14 16:07:57 -04:00
|
|
|
</div>
|
2023-04-14 22:01:36 -04:00
|
|
|
|
|
|
|
{{$id := .Meta.ID}}
|
|
|
|
{{$url := .Url}}
|
|
|
|
{{$basePath := .BasePath}}
|
|
|
|
|
|
|
|
<div class="d-flex flex-column gap-4 mt-5">
|
|
|
|
{{range .Formats}}
|
|
|
|
<div class="d-flex gap-3 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}}" P href="{{.Url}}">
|
|
|
|
Download (direct)
|
|
|
|
</a>
|
|
|
|
<a class="btn btn-primary flex-grow-1" download="{{$id}}-{{.Resolution}}.{{.Ext}}"
|
|
|
|
href="{{$basePath}}/download/proxy?url={{queryEscape $url}}&format={{.FormatID}}">
|
|
|
|
Download (proxied)
|
|
|
|
</a>
|
|
|
|
</div>
|
2023-04-14 16:07:57 -04:00
|
|
|
</div>
|
2023-04-14 22:01:36 -04:00
|
|
|
{{end}}
|
|
|
|
</div>
|