From bb25e927510d76b1bff51c1a0dab3468a62421c5 Mon Sep 17 00:00:00 2001 From: Petr Vecera Date: Sun, 15 Dec 2024 23:08:15 +0100 Subject: [PATCH] Serve youtube thumbnails as webp --- screens/home/youtube-panel/youtube-panel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screens/home/youtube-panel/youtube-panel.tsx b/screens/home/youtube-panel/youtube-panel.tsx index 0701eb28..6f6184ea 100644 --- a/screens/home/youtube-panel/youtube-panel.tsx +++ b/screens/home/youtube-panel/youtube-panel.tsx @@ -9,7 +9,7 @@ type YoutubePanelProps = { }; const getYoutubeThumbnailUrl = (video: YouTubeVideo) => { - return `https://i.ytimg.com/vi/${video.videoId}/hqdefault.jpg`; + return `https://i.ytimg.com/vi_webp/${video.videoId}/hqdefault.webp`; }; const formatViewCount = (views: string): string => {