Skip to content

Commit

Permalink
Serve youtube thumbnails as webp
Browse files Browse the repository at this point in the history
  • Loading branch information
petrvecera committed Dec 15, 2024
1 parent b735a00 commit bb25e92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion screens/home/youtube-panel/youtube-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit bb25e92

Please sign in to comment.