Auto-download Youtube batch playlists… converting to audio (OS X)

Needed libraries

1 brew install libav

2 brew install atomicparsley

3 brew install ffmpeg –with-fdk-aac –with-ffplay –with-freetype –with-frei0r –with-libass –with-libvo-aacenc –with-libvorbis –with-opencore-amr –with-openjpeg –with-opus –with-rtmpdump –with-schroedinger –with-speex –with-theora –with-tools
4 youtube-dl

brew install youtube-dl
cd ~/.config
mkdir youtube-dl
cd youtube-dl
touch config

Edit and save your config file:

Sveat0slavs-MacBook-Pro-2:youtube-dl sveat0slav$ vim config

–proxy 127.0.0.1:8123
–audio-format mp3
–audio-quality 0
–embed-thumbnail
–add-metadata
–ignore-errors
–write-description
–write-info-json
–write-annotations

 

5 proxy .. just in case 🙂

brew install tor
ln -sfv /usr/local/opt/tor/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.tor.plist

 

Sveat0slavs-MacBook-Pro-2:yt sveat0slav$ youtube-dl ai8RiM44Y9E
ai8RiM44Y9E: Downloading webpage
ERROR: Unable to download webpage: <urlopen error Tunnel connection failed: 501 Tor is not an HTTP Proxy> (caused by URLError(error(‘Tunnel connection failed: 501 Tor is not an HTTP Proxy’,),))
=> can’t work with SOCKS

6 brew install polipo
ln -sfv /usr/local/opt/polipo/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.polipo.plist

 

7 Download process

-SINGLE AUDIO
youtube-dl –no-playlist –extract-audio Pbw175phGxY

-SINGLE VIDEO
youtube-dl –no-playlist Pbw175phGxY

-PLAYLIST AUDIO
youtube-dl –yes-playlist –playlist-start 1 –extract-audio PLHx5Jww4l9X0-j3upsXykG3hGletETMp7

-PLAYLIST VIDEO
youtube-dl –yes-playlist –playlist-start 1 PLHx5Jww4l9X0-j3upsXykG3hGletETMp7

2015-12-14 03-22-19 yt — youtube-dl --yes-playlist --playlist-start 1 PLHx5Jww4l9X0-j3upsXykG3hGletETMp7 — 107×22

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s