A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
chore: restore 1 month limit
Christian Feic30312721dff
diff --git a/lib/youtube.js b/lib/youtube.jsindex fa4e412..b20c8b7 100644--- a/lib/youtube.js+++ b/lib/youtube.js@@ -85,8 +85,8 @@ export async function getVideosFor(channelName) {return videoContents.map(toInternalVideo).filter(Boolean)- // .filter(v => v.publishedAt > new Date(Date.now() - 31 * 24 * 60 * 60 * 1000))- .filter((_,i) => i < 10)+ .filter(v => v.publishedAt > new Date(Date.now() - 31 * 24 * 60 * 60 * 1000))+ // .filter((_,i) => i < 10)} catch (error) {console.error('Error fetching latest video:', error.message)return null