mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2024-11-22 07:37:29 +00:00
add thumbnail on videos
This commit is contained in:
parent
11b9425cb0
commit
c55429ac49
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user