From 27a419bc1b82075ce5456b212c94f4ed47909acc Mon Sep 17 00:00:00 2001 From: qo-op Date: Sat, 6 Mar 2021 21:18:14 +0100 Subject: [PATCH] ~/.zen/astrXbian/.install/youtube-dl.sh --- ISOconfig.sh | 5 +++++ cron_MINUTE.sh | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ISOconfig.sh b/ISOconfig.sh index 26e49e8..70c090f 100755 --- a/ISOconfig.sh +++ b/ISOconfig.sh @@ -222,6 +222,11 @@ echo 'Installing Astroport cron_MINUTE' #sudo sed -i "s/$myname/$XZUID/g" /etc/hosts ######################################################################## +echo "Install youtube-dl" # Avoid provider restrictions +######################################################################## +~/.zen/astrXbian/.install/youtube-dl.sh + +######################################################################## echo "Changing your DNS with https://FFDN.org and https://opennic.org" # Avoid provider restrictions ######################################################################## sudo chattr -i /etc/resolv.conf diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index 926b4e8..d21f472 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -25,13 +25,16 @@ export YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' [[ ! -f ~/.kodi/addons/plugin.video.vstream/resources/art/astroport.png ]] && cp ~/.zen/astrXbian/.install/.kodi/addons/plugin.video.vstream/resources/art/astroport.png ~/.kodi/addons/plugin.video.vstream/resources/art/ ######################################################################## -### TEMP CODE (add missing packages to xbian) - TODO REMOVE after 30 mn for git pull & apply -# [[ $(which ffmpeg) == "" && "$USER" == "xbian" ]] && sudo apt-get update && sudo apt-get install git fail2ban inotify-tools curl net-tools libsodium* python3-dev python3-pip python3-setuptools python3-wheel mpack libssl-dev libffi-dev build-essential qrencode jq bc gawk ffmpeg sqlite dnsutils vlc mp3info x11-utils -y - ### NO IP GATEWAY : EXIT ping -q -w 1 -c 1 `ip r | grep default | cut -d ' ' -f 3` 2>&1>/dev/null && echo "GATEWAY OK" || exit 1 ######################################################################## +### TEMP CODE (add missing packages to xbian) - TODO REMOVE after 30 mn for git pull & apply +# [[ $(which ffmpeg) == "" && "$USER" == "xbian" ]] && sudo apt-get update && sudo apt-get install git fail2ban inotify-tools curl net-tools libsodium* python3-dev python3-pip python3-setuptools python3-wheel mpack libssl-dev libffi-dev build-essential qrencode jq bc gawk ffmpeg sqlite dnsutils vlc mp3info x11-utils -y +~/.zen/astrXbian/.install/youtube-dl.sh +######################################################################## + +######################################################################## # HELP DEVLT: Search "TODO" in code # WARNING: This script must be processing less than 1 minute, so do not charge too much this script # _ _____ ____ _ _______ ________ ____