Remove extra console.logs

This commit is contained in:
Violet 2024-01-29 17:00:29 +00:00 committed by GitHub
parent 4b6047bb80
commit 073dd1bf2d

View file

@ -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('.'))