Browse Source

Reformat view page + add direct YT links

master
PrivateGER 3 years ago
parent
commit
947c41c700
Signed by: PrivateGER GPG Key ID: CAE625C962F94C67
  1. 17
      PageHandlers/templates/view.html

17
PageHandlers/templates/view.html

@ -28,7 +28,7 @@
<p style="float: right">{{ .Metadata.LikeCount }} likes | {{ .Metadata.DislikeCount }} dislikes</p> <p style="float: right">{{ .Metadata.LikeCount }} likes | {{ .Metadata.DislikeCount }} dislikes</p>
<p>{{ .Metadata.ViewCount }} views</p> <p>{{ .Metadata.ViewCount }} views</p>
<p>Uploaded by: <a href="/search?term={{ .Metadata.Channel }}">{{ .Metadata.Channel }}</a></p> <p>Uploaded by: <a href="/search?term={{ .Metadata.Channel }}">{{ .Metadata.Channel }}</a> <a href="{{ .Metadata.ChannelURL }}">[YT]</a></p>
<p>Uploaded at: <span id="uploadDate"></span></p> <p>Uploaded at: <span id="uploadDate"></span></p>
<hr /> <hr />
@ -40,6 +40,15 @@
{{ .Metadata.Description }} {{ .Metadata.Description }}
</div> </div>
{{ end }}
<p>Youtube ID: {{.Id}}</p>
<a href="https://youtube.com/watch?v={{ .Id }}">YouTube Link</a><br />
<a href="/videos/{{.Filename}}">Direct video link</a>
{{ if .Metadata.ChannelID }}
<hr /> <hr />
<h3>Comments ({{ .Metadata.CommentCount }}):</h3> <h3>Comments ({{ .Metadata.CommentCount }}):</h3>
@ -62,12 +71,6 @@
</div> </div>
<br /> <br />
<p>Filetype: {{.Extension}}</p>
<p>Youtube ID: {{.Id}}</p>
<p>Filename: {{.Filename}}</p>
<a href="/videos/{{.Filename}}">Direct video link</a>
<script src="https://vjs.zencdn.net/7.15.4/video.min.js"></script> <script src="https://vjs.zencdn.net/7.15.4/video.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/videojs-seek-buttons/dist/videojs-seek-buttons.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/videojs-seek-buttons/dist/videojs-seek-buttons.min.js"></script>
<script> <script>

Loading…
Cancel
Save