node-youtube-dl icon indicating copy to clipboard operation
node-youtube-dl copied to clipboard

[bug] Command failed with exit code 1

Open ldevalbray opened this issue 4 years ago • 6 comments

Hello, when trying to download a video, I get this error : Command failed with exit code 1: C:\Users\xxxxxxx\xxxxxx\xxxxx\xxxxx\youtube-dl.exe --dump-json -f best --encoding utf8 http://www.youtube.com/watch?v=A_MjCqQoLLA

from this piece of code :

video = youtubedl('http://www.youtube.com/watch?v=' + videoId)
video.on('error', function error(err) {
        console.log(err);

Do you know where it could come from ? Thank you !

ldevalbray avatar Jun 11 '20 09:06 ldevalbray

did you get a solution to this?

hot9cups2 avatar Jun 18 '20 06:06 hot9cups2

Unfortunately no ... :(

ldevalbray avatar Jun 18 '20 07:06 ldevalbray

Which version of youtube-dl are you using? Maybe an update would help. Otherwise try running the command in the terminal to get better error logging.

ghost avatar Jun 23 '20 11:06 ghost

@ldevalbray any update?

abhijitpd avatar Aug 24 '20 09:08 abhijitpd

This is fixed in master but they haven't cut a release yet. Use npm i https://github.com/przemyslawpluta/node-youtube-dl.git

bighitbiker3 avatar Aug 28 '20 19:08 bighitbiker3

@bighitbiker3 Thanks for the update!!

abhijitpd avatar Aug 29 '20 10:08 abhijitpd