A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
7 days videos
Christian Feif8c1a5f83a15
diff --git a/lib/youtube.js b/lib/youtube.jsindex 2f7d63f..2c2e697 100644--- a/lib/youtube.js+++ b/lib/youtube.js@@ -71,8 +71,8 @@ export async function getVideosFor(channelName) {return videoContents.map(toInternalVideo).filter(Boolean)- .filter(v => v.publishedAt > new Date(Date.now() - 30 * 24 * 60 * 60 * 1000))- .filter((_,i) => i<10)+ .filter(v => v.publishedAt > new Date(Date.now() - 7 * 24 * 60 * 60 * 1000))+ .filter((_,i) => i < 10)} catch (error) {console.error('Error fetching latest video:', error.message)return null