mirror of
https://github.com/YunoHost-Apps/mopidy_ynh.git
synced 2024-09-03 19:46:21 +02:00
Si on utilise pas Spotify on ajour false dans la conf
This commit is contained in:
parent
e71129b329
commit
d3ea235deb
2 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,6 @@ excluded_file_extensions =
|
|||
.txt
|
||||
|
||||
[spotify]
|
||||
enabled = true
|
||||
username = __USER_SPOTIFY__
|
||||
password = __PWD_SPOTIFY__
|
||||
#bitrate = 320
|
||||
|
|
|
@ -65,12 +65,13 @@ sudo sed -i "s@__IPLOCAL__@$ip_local@g" ../conf/mopidy.conf
|
|||
|
||||
if [ -n "$spotify_user" ];
|
||||
then
|
||||
# sudo sed -i '/[spotify]/a enabled = true' ../conf/mopidy.conf
|
||||
sudo sed -i '/\[spotify\]/a enabled = true' ../conf/mopidy.conf
|
||||
sudo sed -i "s@__USER_SPOTIFY__@$spotify_user@g" ../conf/mopidy.conf
|
||||
sudo sed -i "s@__PWD_SPOTIFY__@$spotify_pass@g" ../conf/mopidy.conf
|
||||
sudo sed -i "s@__ID_SPOTIFY__@$spotify_id@g" ../conf/mopidy.conf
|
||||
sudo sed -i "s@__SECRET_SPOTIFY__@$spotify_id_secret@g" ../conf/mopidy.conf
|
||||
else
|
||||
sudo sed -i '/\[spotify\]/a enabled = false' ../conf/mopidy.conf
|
||||
sudo sed -i "s@__USER_SPOTIFY__@@g" ../conf/mopidy.conf
|
||||
sudo sed -i "s@__PWD_SPOTIFY__@@g" ../conf/mopidy.conf
|
||||
sudo sed -i "s@__ID_SPOTIFY__@@g" ../conf/mopidy.conf
|
||||
|
|
Loading…
Add table
Reference in a new issue