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: 30 vids per channel..

Christian Fei174ff25cdfdb
diff --git a/lib/youtube.js b/lib/youtube.js
index cb26ab3..39be82d 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 < 15)
+ .filter((_,i) => i < 30)
} catch (error) {
console.error('Error fetching latest video:', error.message)
return null