From c55429ac4937b912e42782ea6c95010a95f6d213 Mon Sep 17 00:00:00 2001 From: bopol Date: Tue, 12 Jan 2021 14:35:16 +0100 Subject: [PATCH] add thumbnail on videos --- pug/video.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pug/video.pug b/pug/video.pug index 74a9049..cfe444a 100644 --- a/pug/video.pug +++ b/pug/video.pug @@ -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