diff --git a/index.js b/index.js index a5b0011..de48cee 100644 --- a/index.js +++ b/index.js @@ -25,7 +25,7 @@ function formatBytes(bytes, decimals = 2) { fs.mkdirSync(path.join(__dirname, 'cached')) -const cacheDuration = 15 || process.env.CACHEDUR +const cacheDuration = 30 || process.env.CACHEDUR process.on('uncaughtException', (err, origin) => { fs.writeSync( @@ -98,7 +98,7 @@ app.get("/getLink", async (req, res) => { } `) - res.write(`

Link to video download! (Link is deleted after 15 minutes!)

`) + res.write(`

Link to video download! (Link is deleted after ${cacheDuration} minutes!)

`) setTimeout(()=>{ if (fs.existsSync(ytpath)) { fs.unlinkSync(ytpath)