diff --git a/index.js b/index.js index ab4b078..467aa52 100644 --- a/index.js +++ b/index.js @@ -24,7 +24,7 @@ app.get("/download", (req, res) => { const format = req.query.format const quality = req.query.quality - if (!ytdl.validateURL("https://www.youtube.com/video/_FJGQ7Hae2I)")) { + if (!ytdl.validateURL(url)) { res.send("Invalid URL!") return } diff --git a/static/index.html b/static/index.html index ee98a84..13f27e1 100644 --- a/static/index.html +++ b/static/index.html @@ -35,10 +35,12 @@ + +