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 format = req.query.format
|
||||||
const quality = req.query.quality
|
const quality = req.query.quality
|
||||||
|
|
||||||
if (!ytdl.validateURL("https://www.youtube.com/video/_FJGQ7Hae2I)")) {
|
if (!ytdl.validateURL(url)) {
|
||||||
res.send("Invalid URL!")
|
res.send("Invalid URL!")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,10 +35,12 @@
|
||||||
<option value="avi">.avi</option>
|
<option value="avi">.avi</option>
|
||||||
<option value="mpeg">.mpeg</option>
|
<option value="mpeg">.mpeg</option>
|
||||||
<option value="mov">.mov</option>
|
<option value="mov">.mov</option>
|
||||||
|
<option value="mgsts">.mgsts</option>
|
||||||
<option disabled>Audio Options</option>
|
<option disabled>Audio Options</option>
|
||||||
<option value="mp3">.mp3</option>
|
<option value="mp3">.mp3</option>
|
||||||
<option value="wmv">.wmv</option>
|
<option value="wmv">.wmv</option>
|
||||||
<option value="ogg">.ogg</option>
|
<option value="ogg">.ogg</option>
|
||||||
|
<option value="wav">.wav</option>
|
||||||
</select>
|
</select>
|
||||||
<input type="submit" placeholder="test">
|
<input type="submit" placeholder="test">
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in a new issue