Skip to content

armgit / my-yt

Public Imported from GitHub
0

A clean and minimal youtube frontend, without all the ads and whistles

JavaScript

Avoid clickbaity thumbnails

drcheap73aedfac89fb
diff --git a/lib/youtube.js b/lib/youtube.js
index a998e09..e017ada 100644
--- a/lib/youtube.js
+++ b/lib/youtube.js
@@ -94,7 +94,7 @@ export async function getVideosFor(channelName) {
channelName,
title: data.title?.runs[0].text,
url: `https://www.youtube.com/watch?v=${data.videoId}`,
- thumbnail: `https://img.youtube.com/vi/${data.videoId}/mqdefault.jpg`,
+ thumbnail: `https://img.youtube.com/vi/${data.videoId}/mq2.jpg`,
description: data.descriptionSnippet?.runs[0].text,
id: data.videoId,
publishedTime: data.publishedTimeText?.simpleText,