1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-11-14 04:17:29 +00:00

add thumbnail on videos

This commit is contained in:
bopol 2021-01-12 14:35:16 +01:00 committed by Cadence Ember
parent 11b9425cb0
commit c55429ac49
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17

View File

@ -21,7 +21,7 @@ block content
.video-container .video-container
- const format = sortedFormatStreams[0] - const format = sortedFormatStreams[0]
if format if format
video(controls preload="auto" width=format.second__width height=format.second__height data-itag=format.itag)#video.video video(controls preload="auto" poster=`/vi/${video.videoId}/maxresdefault.jpg` width=format.second__width height=format.second__height data-itag=format.itag)#video.video
source(src=format.url type=format.type) source(src=format.url type=format.type)
else else
video(src="")#video.video video(src="")#video.video