Last active
May 14, 2020 18:04
-
-
Save mcourteaux/5bf56ab7459fa583fed2b4422109e436 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl https://gist.githubusercontent.com/mcourteaux/5bf56ab7459fa583fed2b4422109e436/raw/e3754abbc40cbf99cc36195011132bbcb51e6bdb/belangrijk.sh | bash