Remove extra console.logs
This commit is contained in:
parent
4b6047bb80
commit
073dd1bf2d
1 changed files with 0 additions and 2 deletions
2
index.js
2
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('.'))
|
||||
|
|
Loading…
Reference in a new issue