Skip to content

armgit / my-yt

Public Imported from GitHub
0

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

JavaScript

fix: max 500 videos

Christian Fei53f9e6683c98
diff --git a/lib/repository.js b/lib/repository.js
index a99d8aa..d25a713 100644
--- a/lib/repository.js
+++ b/lib/repository.js
@@ -34,7 +34,7 @@ export default class Repository {
getVideos () {
return this.videos
.sort((a, b) => +new Date(b.publishedAt) - +new Date(a.publishedAt))
- // .filter((_, i) => i < 100)
+ .filter((_, i) => i < 500)
}
getVideo(id) {
return this.videos.find(v => v.id === id)