Skip to content

armgit / my-yt

Public Imported from GitHub
0

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

JavaScript

chore: 15 vids per channel

Christian Fei3838fc443e62
diff --git a/lib/youtube.js b/lib/youtube.js
index 285e26c..cb26ab3 100644
--- a/lib/youtube.js
+++ b/lib/youtube.js
@@ -79,7 +79,7 @@ export async function getVideosFor(channelName) {
.map(toInternalVideo)
.filter(Boolean)
// .filter(v => v.publishedAt > new Date(Date.now() - 31 * 24 * 60 * 60 * 1000))
- // .filter((_,i) => i < 10)
+ .filter((_,i) => i < 15)
} catch (error) {
console.error('Error fetching latest video:', error.message)
return null