A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
cleanup
Christian Feib6e2c0bd22c1
diff --git a/index.js b/index.jsindex 7be9b33..68a2c5b 100644--- a/index.js+++ b/index.js@@ -3,9 +3,10 @@ import os from 'os'import Repository from './lib/repository.js'import { createServer } from './lib/server.js'-fs.mkdirSync('./data/videos', { recursive: true })async function main ({port = 3000, connections = []} = {}) {+ fs.mkdirSync('./data/videos', { recursive: true })+const repo = new Repository()fs.readdirSync('./data/videos').forEach(file => {