@echo off
color a
set /p url="Enter video URL: "
yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" -o "Result/%(title)s.%(ext)s" %url%
exit
@echo off
color a
set /p url="Enter video URL: "
yt-dlp -x --audio-format mp3 -o "Result/%(title)s.%(ext)s" %url%
exit
@web/dev-server
, он открывает мне хром с http://localhost:8000
http://localhost:8000
const fetch = require('node-fetch');
и запускать командой node index.js
только тогда данный код получит в качестве ответа JSON объект. function hhh(res) {
console.log('result: ', res);
}
fetch('http://api_url')
.then(res => res.json())
.then(res => {
if (res.error) {
throw Error(res.error);
}
return hhh(res);
})
.catch(err => {
console.log('обработка любых ошибок');
});
Раньше использовал youtube-dl но сейчас он что-то отказывается у меня работать.
Спасибо за этот форк! Теперь его юзаю )