|
|
|
@ -8,20 +8,27 @@ if [[ ! $(which python) ]]; then
|
|
|
|
|
if [[ ! $(which pyenv) ]]; then
|
|
|
|
|
echo "pyenv installation..."
|
|
|
|
|
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
|
|
|
|
|
echo "export PYENV_ROOT=\"$HOME/.pyenv\"" >> $HOME/.bashrc
|
|
|
|
|
echo "command -v pyenv >/dev/null || export PATH=\"$PYENV_ROOT/bin:$PATH\"" >> $HOME/.bashrc
|
|
|
|
|
echo "eval \"$(pyenv init -)\"" >> $HOME/.bashrc
|
|
|
|
|
echo "Restat terminal and relaunch this install script"
|
|
|
|
|
exit 0
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
pyenv install 3.9.6
|
|
|
|
|
pyenv global 3.9.6
|
|
|
|
|
echo "Restat terminal and relaunch this install script again"
|
|
|
|
|
exit 0
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
sudo apt install lame build-essential libffi-dev jq curl
|
|
|
|
|
sudo apt install -y lame build-essential libffi-dev jq curl
|
|
|
|
|
wget -q -O - https://apt.mopidy.com/mopidy.gpg | sudo apt-key add - #add mopidy's libspotify repository
|
|
|
|
|
sudo wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/stretch.list #valid for Debian Stretch.
|
|
|
|
|
sudo apt update && sudo apt install libspotify12 libspotify-dev python-spotify #install libspotify from mopidy's repository
|
|
|
|
|
sudo apt update && sudo apt install libspotify12 libspotify-dev #install libspotify from mopidy's repository
|
|
|
|
|
mkdir -p lib
|
|
|
|
|
[[ ! -f .env ]] && cp .env.template .env && chmod 600 .env
|
|
|
|
|
|
|
|
|
|
git clone https://github.com/lavolp3/spotify-ripper.git lib/spotify-ripper && cd lib/spotify-ripper && python setup.py install
|
|
|
|
|
git clone https://github.com/migo1271/spotify-ripper.git lib/spotify-ripper && cd lib/spotify-ripper && sudo python setup.py install
|
|
|
|
|
pyenv rehash
|
|
|
|
|
|
|
|
|
|
## Source: https://github.com/migo1271/spotify-ripper
|
|
|
|
|