From 4b6047bb8062729dcefc9ef0a28b1feee7f421ab Mon Sep 17 00:00:00 2001 From: Bingus_Violet Date: Mon, 29 Jan 2024 16:43:28 +0000 Subject: [PATCH 1/2] Update README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 235218e..2f79f48 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,13 @@ npm start # Environment Variables `PORT`= [Preffered Port] (8080 if unspecified) +`MAX_FILESIZE` = [Max file size in MB] (Only applies to 1080p>, don't rely on this feature yet though, as it is unfinished.) + +# To-Do +- [ ] Properly cleanup unnessacary values +- [ ] Option to disable 1080p+ +- [ ] Option to disable Conversion +- [ ] Proper config # Instances Here is a list of all currently public instances. If you want to add your instance to this list, please make an issue or pull request! From 073dd1bf2de12947e49b01112d375e097d69584a Mon Sep 17 00:00:00 2001 From: Violet <110205356+Violets-puragtory@users.noreply.github.com> Date: Mon, 29 Jan 2024 17:00:29 +0000 Subject: [PATCH 2/2] Remove extra console.logs --- index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/index.js b/index.js index f576253..f3bbcb5 100644 --- a/index.js +++ b/index.js @@ -21,7 +21,6 @@ app.get("/convert", async (req, res) => { var filePath = path.join(__dirname, 'downloads', file) - console.log(filePath) if (fs.existsSync(filePath)) { var ytdlpProcess = cp.spawnSync('yt-dlp', ['--get-filename', url]) var name = ytdlpProcess.stdout.toString() @@ -60,7 +59,6 @@ app.get("/download", async (req, res) => { res.setHeader("X-Accel-Buffering", "no") var fileName = Math.ceil(Math.random() * 100_000_000_000).toString() - console.log(fileName) var videoName = cp.spawnSync('yt-dlp', ['-S', 'res:' + quality, '--get-filename', url]).stdout.toString() videoName = videoName.substring(0, videoName.lastIndexOf('.'))