if [[ ! -z `type -p apt` ]]; then if [[ -z `type -p python3` || -z `type -p pip3` || -z `type -p ffmpeg` ]]; then apt install python3 python3-pip ffmpeg -y fi fi if ! (stat -t /usr/local/lib/python3*/dist-packages/{ytmusicapi,youtube_dl,mutagen} > /dev/null 2>&1) then pip3 install ytmusicapi youtube-dl-nightly mutagen fi if ! (stat -t /usr/local/lib/python*/dist-packages/google/colab > /dev/null 2>&1) then $(echo $([ `type -p curl` ] && echo "curl -s" || echo "wget -q -O -")" https://raw.githubusercontent.com/alex2844/youtube-music/master/ymusic.py") > '/usr/local/bin/ymusic' chmod +x /usr/local/bin/ymusic; fi