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 Fei968e0d5454be
diff --git a/lib/repository.js b/lib/repository.js
index 194356a..2f85dda 100644
--- a/lib/repository.js
+++ b/lib/repository.js
@@ -84,7 +84,7 @@ export default class Repository {
getVideos (query = {}) {
const filterKeys = Object.keys(query).filter(k => k !== 'filter')
- // console.log(filterKeys)
+
let videos = this.videos
.filter(v => query.excluded === 'true' ? !this.filterByExcludedTerms(v) : this.filterByExcludedTerms(v))
console.log('filtering by excluded', query.excluded === 'true', videos.length)