From d0fdc8a05f68fa63d6a753949636add0aaa2cb01 Mon Sep 17 00:00:00 2001 From: Violet <110205356+Violets-puragtory@users.noreply.github.com> Date: Mon, 30 Oct 2023 13:29:44 +0000 Subject: [PATCH] Removed video folder, Fixed cachePath variable --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index c9b0402..239a39e 100644 --- a/index.js +++ b/index.js @@ -13,7 +13,7 @@ const cssPath = path.join(staticPath, 'mainStyle.css') const resources = path.join(__dirname, 'resources') -const cachePath = path.join(__dirname, 'cache/videos') +const cachePath = path.join(__dirname, 'cache') const searchCacheDur = (process.env.SEARCH_DUR || 24) * 3600000 const playerPath = path.join(resources, 'player.html') @@ -44,7 +44,7 @@ app.listen(PORT, () => { }) async function cacher(id, ready) { - vidpath = path.join(__dirname, `cache/${id}.mp4`) + vidpath = path.join(cachePath, `${id}.mp4`) var debounce = true