ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.28k stars 9.94k forks source link

Unable to download JSON metadata #17263

Closed ghost closed 6 years ago

ghost commented 6 years ago

Please follow the guide below


Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.08.04. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

Before submitting an issue make sure you have:

What is the purpose of your issue?


Description of your issue, suggested solution and other information

command line like this ,

youtube-dl --proxy socks5://127.0.0.1:1080/ \ --user-agent "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36" \ --verbose -c --skip-unavailable-fragments --no-check-certificate \ "https://www.youtube.com/playlist?list=PLy6FxrdZ3VARMcFJobwdA0nsIs2DmtrVh" \ --playlist-start 2731 --playlist-end 2800 \ -o "%(playlist_index).%(title)s.%(ext)s"

I hope i did not use it wrong .Is it a network issue or just the playlist too big ?

dstftw commented 6 years ago

Most likey caused by your proxy.

ghost commented 6 years ago

Other tools with my proxy works fine .

ghost commented 6 years ago

Does youtube-dl need credentials from my google Data API ? client_secret.json , is it the file .

ghost commented 6 years ago

@dstftw It's buffer related ,i think.

I add --http-chunk-size 1M --buffer-size 10M --no-resize-buffer min-sleep-interal 5 --max-sleep-interval 10 . and it works fine. This is the playlist in question

"https://www.youtube.com/playlist?list=PLy6FxrdZ3VARMcFJobwdA0nsIs2DmtrVh"

It's a big playlist , has 1000+ videos . maybe you can test ,which parameter works .

--With best wish .

dstftw commented 6 years ago

These options have nothing to do with your issue. As already said it most likely that your proxy fails from time to time.