2 new formats, fixed idiocy
This commit is contained in:
parent
91982ad78e
commit
56835a9221
2 changed files with 3 additions and 1 deletions
2
index.js
2
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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue