diff --git a/index.js b/index.js
index e73f073..6dd8060 100644
--- a/index.js
+++ b/index.js
@@ -35,11 +35,8 @@ app.use(bodyParser.urlencoded({ extended: false }))
app.post("/convert", uploads.single("files"), (req, res) => {
var file = req.file
- var preset = req.body.preset || 'veryfast'
var format = req.body.format || 'mp4'
- console.log(file)
-
const ffmpegProcess = cp.spawn(ffmpeg, [
'-i', file.path,
'-f', format,
@@ -53,12 +50,11 @@ app.post("/convert", uploads.single("files"), (req, res) => {
'pipe', 'pipe', 'pipe', 'pipe', 'pipe',
],
})
- console.log(fs.statSync(file.path).size)
+
res.setHeader('Content-Disposition', `attachment; filename="${file.originalname.substring(0, file.originalname.lastIndexOf('.'))}.${formats[format] || format}"`);
ffmpegProcess.stdio[1].pipe(res)
.on("close", () => {
- console.log("A")
fs.rmSync(file.path)
})
})
diff --git a/static/converter/index.html b/static/converter/index.html
index 7e0b907..3ebe097 100644
--- a/static/converter/index.html
+++ b/static/converter/index.html
@@ -54,9 +54,6 @@
-
-
Notes:
-Faster presets convert faster but have less quality, vice versa.
Please consider donating or host the website yourself! Anything helps! (Check Codeberg for more info)