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: cleanup

Christian Fei3296771ac84d
diff --git a/lib/repository.js b/lib/repository.js
index 7f293c2..a3c976b 100644
--- a/lib/repository.js
+++ b/lib/repository.js
@@ -50,7 +50,6 @@ export default class Repository {
getVideos () {
return this.videos
.sort((a, b) => +new Date(b.publishedAt) - +new Date(a.publishedAt))
- // put not ignored video first
.sort((a, b) => (b.ignored ? -1 : 0) + (a.ignored ? 1 : 0))
.filter((_, i) => i < 500)
}