19

I am trying to download a playlist using youtube -dl but getting an error.

Command:

youtube-dl --playlist-start 1 https://www.youtube.com/playlist?list=PL8B24C31197EC371C

Output:

    [youtube:playlist] PL8B24C31197EC371C: Downloading page #1
ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol>

What should i do?

1 Answers1

34

My fault:

I installed youtube-dl using command : sudo apt-get install youtube-dl

What should I have done:

I should have used commands (either one):

either

sudo curl -L https://yt-dl.org/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

or

sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

I used the first one and then it worked correctly.

nwk
  • 136
  • 3
  • 2
    before you forget that path, you should alias it. Example: add alias youtube-dl='/usr/local/bin/youtube-dl' in your .bashrc – Augusto Jul 22 '16 at 17:41
  • 3
    @augusto /usr/local/bin is usually in your $PATH, meaning that you don't need that alias to just run youtube-dl something from bash. – Daan Wilmer Aug 11 '17 at 10:05