Browse Source

youtube-dl install

master
qo-op 1 week ago
parent
commit
816c670df7
  1. BIN
      .install/youtube-dl
  2. 6
      .install/youtube-dl.sh

BIN
.install/youtube-dl

6
.install/youtube-dl.sh

@ -1,10 +1,14 @@
#!/bin/bash
########################################################################
MY_PATH="`dirname \"$0\"`" # relative
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
ME="${0##*/}"
######## YOUTUBE-DL ##########
if [[ $(which youtube-dl) ]]; then
sudo apt-get remove youtube-dl
fi
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl || sudo pip install --upgrade youtube-dl || (echo "error installing youtube-dl" && exit 1)
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl || sudo cp $MY_PATH/youtube-dl /usr/local/bin/ || (echo "error installing youtube-dl" && exit 1)
sudo chmod a+rx /usr/local/bin/youtube-dl
sudo chown $USER /usr/local/bin/youtube-dl
youtube-dl -U
Loading…
Cancel
Save