Skip to content

armgit / my-yt

Public Imported from GitHub
0

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

JavaScript

update videos 5min

Christian Fei540d7863f338
diff --git a/server.js b/server.js
index 5251256..cef29d1 100644
--- a/server.js
+++ b/server.js
@@ -71,7 +71,7 @@ async function main ({port = 3000} = {}) {
})
updateAndPersistVideos(repo)
-
+ setInterval(() => updateAndPersistVideos(repo), 1000 * 60 * 5)
createServer({repo, port})
.listen(port, () => {
console.log(`Server running at http://localhost:${port}`)