Skip to content

Instantly share code, notes, and snippets.

@mcourteaux
Last active May 14, 2020 18:04
Show Gist options
  • Save mcourteaux/5bf56ab7459fa583fed2b4422109e436 to your computer and use it in GitHub Desktop.
Save mcourteaux/5bf56ab7459fa583fed2b4422109e436 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ -e /usr/local/bin/youtube-dl ]; then
echo "Already installed"
else
#sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
#sudo chmod a+rx /usr/local/bin/youtube-dl
sudo pip3 install --upgrade youtube_dl
fi
installed=$(dpkg --list | grep libcaca0 | wc -l)
if [ $installed -lt 1 ]; then
sudo apt install mpv libcaca0
fi
DISPLAY= mpv --quiet -vo=caca 'https://www.youtube.com/watch?v=oHg5SJYRHA0'
@mcourteaux
Copy link
Author

curl https://gist.githubusercontent.com/mcourteaux/5bf56ab7459fa583fed2b4422109e436/raw/e3754abbc40cbf99cc36195011132bbcb51e6bdb/belangrijk.sh | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment