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: do not send updates when video is ignored

Christian Feia8af738f1afd
diff --git a/server/http.js b/server/http.js
index 8d21c5a..c7b8bdd 100644
--- a/server/http.js
+++ b/server/http.js
@@ -40,6 +40,7 @@ export function createServer (repo = new Repository()) {
}
const { name, videos } = data
const newVideos = videos
+ .filter(v => !v.ignored)
.filter(v => v.addedAt > lastAdded)
.filter(v => repo.filterByExcludedTerms(v))
lastAdded = Date.now()