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
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ block content
.video-container
- const format = sortedFormatStreams[0]
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)
else
video(src="")#video.video