A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
chore: cleanup
Christian Feic1a12fc52be7
diff --git a/index.js b/index.jsindex 2f1bf40..9ca235c 100644--- a/index.js+++ b/index.js@@ -23,10 +23,7 @@ async function main ({ port = 3000 } = {}) {function runUpdateVideos (repo, connections) {console.log('update videos')updateAndPersistVideos(repo, (err, data) => {- if (err) {- console.error(err)- return- }+ if (err) return console.error(err)const { name, videos } = dataconst newVideos = videos.filter(v => v.addedAt > lastAdded)lastAdded = Date.now()